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.
This commit is contained in:
Nick Alcock authored and Pádraig Brady committed 2014-10-02 16:35:09 +01:00
1 parent 4f87ca916c
commit 2d3ba46e58
1 file changed
+1 -1
+1 -1
View File
@@ -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,