Desert Zarzamora

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

Escrito por Desert Zarzamora el Sunday, 7 de September del 2008 a las 9:46 am

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

Categoria: General

No hay comentarios

No Hay comentarios.

Escribir un comentario

XHTML: Puedes usar estos tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>