1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: reduce paths added to LD_LIBRARY_PATH

Add only stricly needed paths to compiled .so objects.
This commit is contained in:
Zdenek Kabelac 2023-07-12 13:51:48 +02:00
parent 80bad4a3b4
commit 85fb46d8a6

View File

@ -302,9 +302,7 @@ if test -z "${installed_testsuite+varset}"; then
*)
PATH="$abs_top_builddir/test/lib:$abs_top_builddir/test/api:$PATH"
LVM_BINARY=$(which lvm)
LD_LIBRARY_PATH=$(find -L "$abs_top_builddir/libdm/" "$abs_top_builddir/tools/"\
"$abs_top_builddir/daemons/" \
-name "*.so" -printf "%h:")"$LD_LIBRARY_PATH"
LD_LIBRARY_PATH="$abs_top_builddir/daemons/dmeventd:$abs_top_builddir/tools:$abs_top_builddir/libdm:$LD_LIBRARY_PATH"
export PATH LD_LIBRARY_PATH LVM_BINARY ;;
esac
fi