[CMake] Adding -fPIC to static libraries
Brad King
brad.king at kitware.com
Wed Mar 1 14:04:37 EST 2006
Prakash Punnoor wrote:
> Am Mittwoch März 1 2006 19:20 schrieb William A. Hoffman:
>
>>At 11:29 AM 3/1/2006, Prakash Punnoor wrote:
>>
>>>(That's why libtool makes one's life so much easier as you don't have to
>>>think about such problems anymore...)
>>
>>What does libtool do to help here?
>
> If you use libtool libs *all* the time, things will just work, no matter if
> you link statically or shared.
How does it know whether to build a static library (no -fPIC) or an
archive of shared objects (with -fPIC)? When building the library there
is no way to know whether it will ever be linked into a shared library
unless someone provides the information.
-Brad
More information about the CMake
mailing list