[CMake] Adding -fPIC to static libraries

Filipe Sousa filipe at ipb.pt
Wed Mar 1 11:19:13 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Prakash Punnoor wrote:
> Am Mittwoch März 1 2006 16:29 schrieb Filipe Sousa:
> 
> 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 

You're right, I'm linking static libraries into a shared lib, but I get
the error before linking into the executable. Maybe this is
non-portable, but works with Linux and Windows. But now I have to
compile my project to Linux AMD64 and I don't have time to fix things.
I'm adding -fPIC till I find a better solution.

I'm noting using libtool nor external libraries, my project is self
containing

> shouldn't happen if you link static libs into executables.

Thanks for the advise.
- --
Filipe Sousa
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)

iD8DBQFEBcmBbQdNYqwwwCwRAmNjAJ9qi7xR7Ne+BrPP8d0bc/3kvpnHWwCeNFnp
sSv6ube1bosQfvcMQa+1IrE=
=VT9f
-----END PGP SIGNATURE-----


More information about the CMake mailing list