mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
test: set LD_LIBRARY_PATH to all dirs with *.so
Instead of manually editing entries, add all the directories which contain shared objects. Signed-off-by: Tony Asleson <tasleson@redhat.com>
This commit is contained in:
parent
fc2644ae71
commit
fefb2f03c3
@ -204,11 +204,11 @@ test -n "${abs_top_builddir+varset}" || . lib/paths || die "you must run make fi
|
||||
case "$PATH" in
|
||||
*"$abs_top_builddir/test/lib"*) ;;
|
||||
*)
|
||||
PATH="$abs_top_builddir/test/lib":$PATH
|
||||
for d in daemons/dmeventd/plugins/mirror daemons/dmeventd/plugins/snapshot \
|
||||
daemons/dmeventd/plugins/lvm2 daemons/dmeventd liblvm tools libdm; do
|
||||
LD_LIBRARY_PATH="$abs_top_builddir/$d":$LD_LIBRARY_PATH
|
||||
done
|
||||
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 ;;
|
||||
esac
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user