07 September 2008 ~ 0 Comments

AR archives, Shared objects y Static Objects: .a, .o , .so

Cómo convertir un AR archive (.a) lleno de static objects (.o) a un Shared Object (.so)

a files are just (ar) archives of .o object files, so all you need to do is unpack the archive and repackage them as a shared object (.so).

ar -x mylib.a
gcc -shared *.o -o mylib.so

Leave a Reply