Nick Ing-Simmons wrote:
Something in your link line has caused linker to insist that all code is position independant (Solaris does not usually care but is good practice to make loadable .so's position independant).
(This requirement is probably folded into g++'s -shared flag.)


Now when perl is built as normal executable with a non-shared libperl
it is NOT built with -fPIC.


Quick fix is probably to build perl to have a shared libperl.
Your .so will then be linked against position independant libperl.so


The other thing I am unsure about in your link is the -Wl,-Bsymbolic.
Once upon a time it was important that perl saw the calling program's
malloc() etc. and -Bsymbolic muddled that - but those issues may have been fixed, also if that is going to cause any problems it will be at run-rime not link time.


Building a shared libperl worked a treat, thanks for the help!

Thanks
Brian




Reply via email to