How to link static libs (archives) to an empty dynamic lib with gcc4

Posted by user360607 on Stack Overflow See other posts from Stack Overflow or by user360607
Published on 2010-06-08T05:43:36Z Indexed on 2010/06/08 5:52 UTC
Read the original article Hit count: 324

Filed under:
|

Greetings all!

I'm using gcc on linux to create a shared library. The library itself has no code but links to a couple of static libraries(archives) also built using gcc. I need to export the static libs' symbols through my shared library. What happens is that the resulting shared lib is too small and it actually does not contain any of the symbols provided by the static libs mentioned above. I also tried with a map of exported symbols but that did not help at all. Could any of you suggest a solution!

10x in advance

© Stack Overflow or respective owner

Related posts about linux

Related posts about gcc4