ChuckFox2 has asked for the wisdom of the Perl Monks concerning the following question:
I have a shared lib that makes calls to other shared libraries. I used XS to wrap the first call and make it available to Perl. The compile/link worked, but on deployment to Linux, I find that I have to use LD_PRELOAD in order to identify the shared libs called by the originating shared lib. SunOS does not appear to have this problem. The shared libs that are being called under the covers do not have a fixed location. I assume that the linker embedded the path to these other shared libs in the originating shared lib and can't find them at runtime. Why does it not obey the LD_LIBRARY_PATH as SunOS does ? How do I get around this ? Is there some link option that I missed for Linux ?
Thanks in advance,
Chuck Fox