mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 18:23:32 +08:00
test: pull in weak deps into tests
(Pulled from @bluca's comment here: https://github.com/systemd/systemd/pull/17884#issuecomment-740005624 and turned into a commit by @poettering)
This commit is contained in:
parent
68fdc72cfe
commit
b7fca1b059
@ -676,6 +676,19 @@ install_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):$(get_ldpath $i)/src/udev" 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
|
||||||
|
|
||||||
|
# A number of dependencies is now optional via dlopen, so the install
|
||||||
|
# script will not pick them up, since it looks at linkage.
|
||||||
|
for lib in libcryptsetup libidn libidn2 pwquality libqrencode; do
|
||||||
|
if pkg-config --exists ${lib}; then
|
||||||
|
path=$(pkg-config --variable=libdir ${lib})
|
||||||
|
if ! [[ ${lib} =~ ^lib ]]; then
|
||||||
|
lib="lib${lib}"
|
||||||
|
fi
|
||||||
|
inst_libs "${path}/${lib}.so"
|
||||||
|
inst_library "${path}/${lib}.so"
|
||||||
|
fi
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanup_loopdev() {
|
cleanup_loopdev() {
|
||||||
|
Loading…
Reference in New Issue
Block a user