[Linux-disciples] Archive libraries and shared objects

Brian Cooke linux-disciples@bostoncoop.net
Sun, 04 Jan 2004 00:02:37 -0500


That worked perfectly.  Thanks Adam.

Brian

Adam Kessel wrote:

>
>A friend suggests just extracting the archive and recompiling.  This may
>not work if the archive was not originally compiled with -fPIC.  So, for
>example with libfoo.a:
>
>~> ar x libfoo.a
>~> gcc -shared -o libfoo.so libfoo.o
>  
>