From: Julian Andres Klode Date: Tue, 23 Aug 2016 21:37:36 +0000 (+0200) Subject: test: Fix building of noopchroot X-Git-Tag: 1.3_rc3~10^2~16 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/1a7c66e40ffd2bdd404b2efdc6dc268ebfd508ec test: Fix building of noopchroot Gbp-Dch: ignore --- diff --git a/test/integration/framework b/test/integration/framework index 39c9fcde2..bf9cef4e8 100644 --- a/test/integration/framework +++ b/test/integration/framework @@ -589,7 +589,11 @@ int execvp(const char *file, char *const argv[]) { return func_execvp(newfile, argv); } EOF - testempty --nomsg gcc -Wall -Wextra -fPIC -shared -o noopchroot.so noopchroot.c -ldl + if cc -ldl 2>&1 | grep -q dl; then + testempty --nomsg cc -Wall -Wextra -fPIC -shared -o noopchroot.so noopchroot.c + else + testempty --nomsg cc -Wall -Wextra -fPIC -shared -o noopchroot.so noopchroot.c -ldl + fi } configcompression() { if [ "$1" = 'ALL' ]; then