Page 1 of 1

adding fPIC

PostPosted: Wed Jun 08, 2011 8:29 am
by flashpixx

I try to build LAPack 3.3.1 unter LInux for using with ATLAS. I use cmake for creating the Makefile and I can build the static or shared library without any problem, but the ATLAS configure need a static LAPack build with the flag -fPIC. So run cmake and build the static ones, select the "Release" build type (CMAKE_BUILD_TYPE) and add to the CMAKE_Fortran_FLAGS_RELEASE the -fPIC, build and install process runs without problems, but the ATLAS configure script shows the error that the liblapack.a isn't build with the -fPIC flag.

On which step is my mistake? How can I add the -fPIC to the build process?


Re: adding fPIC

PostPosted: Fri Jul 01, 2011 4:32 am
by admin
I would suggest to build the library with the Makefile.
You take take a look here: viewtopic.php?f=7&t=908