[CMake] How to specify -fpic ?
Michael Wild
themiwi at gmail.com
Thu Sep 30 12:50:09 EDT 2010
On 30. Sep, 2010, at 18:10 , David Aldrich wrote:
> Hi Marcel
>
>> Considering all the hassle you have to go through. Why don't you build a
>> shared libKernel.so library and let the runtime loader fix all the
>> issues you're now trying to solve compile/link time?
>
> Thanks for your suggestion. I'm not sure how that would work out. At start-up the runtime linker would only need to resolve issues between main.cpp, libKernel.so and libPython.so. Later I will dlopen some more libraries that need libKernel. Would the runtime linker handle that?
>
> BR
>
> David
yes, because shared when a shared library is created, ALL symbols get included (provided they are exported, which is the default on *NIX systems).
Michael
--
There is always a well-known solution to every human problem -- neat, plausible, and wrong.
H. L. Mencken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100930/54d32b4a/attachment.pgp>
More information about the CMake
mailing list