summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2014-10-02 15:26:21 +0100
committerPádraig Brady <P@draigBrady.com>2014-10-02 16:35:09 +0100
commit2d3ba46e580cbc9e81edc4e8dd759f9fb0775161 (patch)
tree111f697864888e086c745364d5f98f7b98c9afb6
parent4f87ca916c6b42a5b8a10ce7bc4e54f2ba06451c (diff)
downloadcoreutils-2d3ba46e580cbc9e81edc4e8dd759f9fb0775161.tar.xz
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.
-rw-r--r--init.cfg2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.cfg b/init.cfg
index 032646b18..03999eb27 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,