adding fPIC

Post here if you have problem using the CMAKE build process

adding fPIC

Postby flashpixx » Wed Jun 08, 2011 8:29 am

Hello,

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?

Thanks
flashpixx
 
Posts: 3
Joined: Fri Jul 23, 2010 6:03 pm

Re: adding fPIC

Postby admin » Fri Jul 01, 2011 4:32 am

I would suggest to build the library with the Makefile.
You take take a look here: viewtopic.php?f=7&t=908
Julie
admin
Site Admin
 
Posts: 504
Joined: Wed Dec 08, 2004 7:07 pm


Return to CMAKE

Who is online

Users browsing this forum: No registered users and 2 guests

cron