After some extensive googling, I found the solution here.

http://www.mail-archive.com/[email protected]/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
[EMAIL PROTECTED]
800-538-8450 Ext. 54395
512-602-4395


_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to