mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: fix LD_LIBRARY_PATH
Use only selected paths for finding .so in builddir. So if builddir constains some embeded subdirs with some more occurences of project (i.e. 'make rpm' build subdir) those library paths will not get into list.
This commit is contained in:
parent
970df59f91
commit
fb1f38a6f6
@ -258,12 +258,11 @@ if test -z "${installed_testsuite+varset}"; then
|
||||
case "$PATH" in
|
||||
*"$abs_top_builddir/test/lib"*) ;;
|
||||
*)
|
||||
PATH="$abs_top_builddir/test/lib":"$abs_top_builddir/test/api":$PATH
|
||||
for i in `find $abs_top_builddir -name \*.so`; do
|
||||
p=`dirname $i`
|
||||
LD_LIBRARY_PATH="$p":$LD_LIBRARY_PATH
|
||||
done
|
||||
export PATH LD_LIBRARY_PATH ;;
|
||||
PATH="$abs_top_builddir/test/lib":"$abs_top_builddir/test/api":$PATH
|
||||
LD_LIBRARY_PATH=$(find -L "$abs_top_builddir/libdm/" "$abs_top_builddir/tools/"\
|
||||
"$abs_top_builddir/daemons/" "$abs_top_builddir/liblvm/"\
|
||||
-name "*.so" -printf "%h:")"$LD_LIBRARY_PATH"
|
||||
export PATH LD_LIBRARY_PATH ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user