[CMake] --whole-archive
Juan Sanchez
Juan.Sanchez at amd.com
Thu Sep 13 13:26:32 EDT 2007
After some extensive googling, I found the solution here.
http://www.mail-archive.com/cmake@cmake.org/msg01890.html
Juan Sanchez wrote:
> Hi,
>
> On linux, I need to generate an shared library from an archive. I need
> to have:
>
> -Wl,-whole-archive
>
> before and
>
> -Wl,-no-whole-archive
>
> after the archive on the shared library link line. Is there a way to do
> this. The static archive is compiled fPIC so symbol relocation is not
> an issue.
>
> Thanks,
>
> Juan
--
Juan Sanchez
Juan.Sanchez at amd.com
800-538-8450 Ext. 54395
512-602-4395
More information about the CMake
mailing list