[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: LD_LIBRARY_PATH for make test

Hallvard B Furuseth wrote:
> Michael Ströder writes:
>> So this works great for you. But this won't work for others. And I'd
>> really like to know what's wrong with my suggestion to generally set
>> LD_LIBRARY_PATH in tests/scripts/defines.sh like this:
> Does that help? 

Yes, definitely in my case.

> man ld.so on RHEL 5.3 says $LD_LIBRARY_PATH is used
> _after_ an Elf binary's DT_RPATH attribute, unless the DT_RUNPATH
> attribute is also set.  ld does not set DT_RUNPATH by default.

Well, you explicitly set the run-time linking option with linker
options. I'm not doing this.

> Only append the ":" if LD_LIBRARY_PATH is already set, otherwise I
> suppose you in practice include "." the path.  Also, include slapi:
> LD_LIBRARY_PATH=$TESTWD/../libraries/liblber/.libs:$TESTWD/../libraries/libldap/.libs:$TESTWD/../libraries/libldap_r/.libs:$TESTWD/../servers/slapd/slapi/.libs${LD_LIBRARY_PATH+':'}${LD_LIBRARY_PATH} export LD_LIBRARY_PATH

Seems to work (at least until test002)...

Ciao, Michael.