From 2d3ba46e580cbc9e81edc4e8dd759f9fb0775161 Mon Sep 17 00:00:00 2001 From: Nick Alcock Date: Thu, 2 Oct 2014 15:26:21 +0100 Subject: [PATCH] tests: fix false failure for test referencing libdl * init.cfg (gcc_shared_): -ldl has to be positioned after the object files that may rely upon it. This fixes tests/cp/nfs-removal-race.sh which references dlsym() from libdl. --- init.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.cfg b/init.cfg index 032646b187..03999eb272 100644 --- a/init.cfg +++ b/init.cfg @@ -521,7 +521,7 @@ gcc_shared_() local out=$2 shift 2 || return 1 - $CC -Wall -shared --std=gnu99 -fPIC -ldl -O2 $* "$in" -o "$out" + $CC -Wall -shared --std=gnu99 -fPIC -O2 $* "$in" -o "$out" -ldl } # There are a myriad of ways to build shared libs, -- 2.47.2