test-functions: make sure we test our own libudev instead of the host libudev
When invoking "ldd" to find dependency libraries we already set $LD_LIBRARY_PATH to point to our own build tree, so that our libraries are checked, not the host libraries. This is not sufficient howeever, as libudev is built in a subdir. Add that, too.
This commit is contained in:
parent
895abf3fdd
commit
73484ecff9
|
@ -673,7 +673,7 @@ get_ldpath() {
|
||||||
install_missing_libraries() {
|
install_missing_libraries() {
|
||||||
# install possible missing libraries
|
# install possible missing libraries
|
||||||
for i in $initdir{,/usr}/{sbin,bin}/* $initdir{,/usr}/lib/systemd/{,tests/{,manual/,unsafe/}}*; do
|
for i in $initdir{,/usr}/{sbin,bin}/* $initdir{,/usr}/lib/systemd/{,tests/{,manual/,unsafe/}}*; do
|
||||||
LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$(get_ldpath $i)" inst_libs $i
|
LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$(get_ldpath $i):$(get_ldpath $i)/src/udev" inst_libs $i
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue