Yeah, openbsd ld/ld.so for example will bitch and moan when its asked to
do this. (nonPIC code loaded as so). So this is to be used as last resort.
On Sat, 5 Aug 2000, Lamar Owen wrote:
> Charles Tassell wrote:
> > There is also a way to recompile a .a library into a shared
> > library. Something like:
>
> > ar x library.a
> > ld -shared -o library.so *.o
>
> But a shared lib is _supposed_ to be compiled with position-independent
> code with -fPIC -- otherwise you are just asking for trouble to simply
> relink in this way. It may work for you (as it does for me with
> pl/perl, and for Karl DeBisschop), but it is highly unlikely it will
> work for everyone, and it is likely to cause performance issues even if
> it does work.
>
> --
> Lamar Owen
> WGCR Internet Radio
> 1 Peter 4:11
>
>