How can I link several static libraries into single shared library?
Tue May 11 07:09:00 GMT 2010
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?
More information about the Binutils