Merge multiple .so shared libraries
Merging multiple shared libraries into one is indeed practically impossible on all UNIXen, except AIX: the linker considers the .so a “final” product. But merging archives into .so should not be a problem: gcc -shared -o c.so -Wl,–whole-archive a.a b.a -Wl,–no-whole-archive