[CMake] Convenience lib vs static library
Óscar Fuentes
ofv at wanadoo.es
Sun Nov 23 17:21:46 EST 2008
Andreas Pakulat <apaku at gmx.de> writes:
>> Huh? I'm not aware of that as a limitation - you *do* need the objects
>> in the static library to be
>> position-independant or otherwise compiled as objects to go into a
>> shared library.
>
> Thats ok on linux, to get it working on 64 bit systems (32 bit don't need
> -fPIC). However on some systems this is not supported at all, i.e. the
> linker simply doesn't support creating a shared library from static libs. I
> think one of those systems is windows, or rather MSVC.
You can use a .def file on MSVC for telling the linker what to export
while creating the dll file.
--
Oscar
More information about the CMake
mailing list