summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-08-23 23:37:36 +0200
committerJulian Andres Klode <jak@debian.org>2016-08-26 22:17:55 +0200
commit1a7c66e40ffd2bdd404b2efdc6dc268ebfd508ec (patch)
tree2576f50bfb6e769576d797ec62666f5b83c329e3
parent4b1fb7b1876bdb46cb7a0329158f12638baa2464 (diff)
test: Fix building of noopchroot
Gbp-Dch: ignore
-rw-r--r--test/integration/framework6
1 files changed, 5 insertions, 1 deletions
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