[CMake] Adding -fPIC to static libraries

Prakash Punnoor prakash at punnoor.de
Wed Mar 1 10:36:27 EST 2006


Am Mittwoch März 1 2006 16:29 schrieb Filipe Sousa:
> For some reason that I don't understand I have to add -fPIC to static
> libraries on AMD64 otherwise I get this message:
> relocation R_X86_64_32 against `a local symbol' recompile with -fPIC

Not really helpfull regarding CMake, but are you doing something non-portable, 
like linking the static lib into an shared lib (or libtool lib)? This 
shouldn't happen if you link static libs into executables.


-- 
(°=                 =°)
//\ Prakash Punnoor /\\
V_/                 \_V
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060301/57958437/attachment.pgp


More information about the CMake mailing list