[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problems with LD_LIBRARY_PATH and libtool wrapper
From: |
Dan McMahill |
Subject: |
problems with LD_LIBRARY_PATH and libtool wrapper |
Date: |
Wed, 13 Aug 2008 17:06:41 -0400 |
User-agent: |
Thunderbird 2.0.0.16 (Windows/20080708) |
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
- problems with LD_LIBRARY_PATH and libtool wrapper,
Dan McMahill <=