This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

How can I link several static libraries into single shared library?


Hi.
I want to link several static libraries into single shared library.
So far I'm trying to link ALURE(http://kcat.strangesoft.net/alure.html) static library into my shared library:


g++ -shared -o libmj.so /usr/local/lib/libalure.a

But that leaves my libmj.so of 6K size, while libalure.a is of 1.5M. Looks like linker discards all unused symbols from libalure.
How do I force it to put *ALL* symbols from libalure.a into my libmj.so?
Thanks.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]