ICANN's unrestricted TLDs will make configuration harder to understand.
06 Jul 2008Sometimes it’s useful to be able to convert a .a file into a .so shared object library. A better way is to modify the Makefile, or dig deep into autotools, and recompile/relink.
The command I use is:
ld --whole-archive -shared -o lib.so lib.a
Where ‘lib’ should be replaced with the name of the library which you are converting. This has worked for me, but your milage may vary.
The created shared object library will be larger than a properly created .so. This is because the object files in the .a library will have statically included some libc (and other) code which a properly created shared object library could share instead.