A very simple method to build *.so file from *.o files

gcc -shared libMySharedLibrary.so `ls *.o`

The *.o files must be compiled with -fPIC or -fpic option.

Leave a Reply