Hello,

I have a problem with the LD_LIBRARY_PATH handling inside of the libtool wrapper. I see a line like:

# Add our own library path to LD_LIBRARY_PATH
LD_LIBRARY_PATH="/usr/pkg/lib:/home/dan/src/myprog/libmine/.libs:$LD_LIBRARY_PATH"

in /home/dan/src/myprog/src/myprog which is the libtool wrapper.

The problem is I may have an out of date libmine installed in /usr/pkg/lib and at runtime I pick that one up instead of the one in /home/dan/src/myprog/libmine/.libs. This has caused me great confusion a couple of times when I absolutely could not correlate the behavior of the program with the sources in ../libmine because of course they didn't match.

It seems that we want to make sure any ".libs" directories appear first in LD_LIBRARY_PATH.

Am I missing something obvious here?

Thanks
-Dan


_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to