From 122ab653e816164312b61deca5b05c24d6ff4204 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 9 Oct 2017 15:45:25 +0200 Subject: [PATCH] Make tests work on debian The regular ldconfig is some bash wrapper over /sbin/ldconfig.real --- tests/make-test-runtime.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/make-test-runtime.sh b/tests/make-test-runtime.sh index 83f23114..43f0997b 100755 --- a/tests/make-test-runtime.sh +++ b/tests/make-test-runtime.sh @@ -25,7 +25,11 @@ mkdir -p ${DIR}/usr/bin mkdir -p ${DIR}/usr/lib ln -s ../lib ${DIR}/usr/lib64 ln -s ../lib ${DIR}/usr/lib32 -cp `which ldconfig` ${DIR}/usr/bin +if test -f /sbin/ldconfig.real; then + cp /sbin/ldconfig.real ${DIR}/usr/bin/ldconfig +else + cp `which ldconfig` ${DIR}/usr/bin +fi T=`mktemp` for i in $@; do I=`which $i`