.a files are just archive of .o object files. You need to just extract the files from the archive and package them as a shared object (.so).
.a
.o
.so
ar -x myarchive.a gcc -shared -Wl,-soname,mysharedlib.so *.o -o mysharedlib.so
ar -x myarchive.a
gcc -shared
*.o -o mysharedlib.so
No comments:
Post a Comment