]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: fix false failure for test referencing libdl
authorNick Alcock <nick.alcock@oracle.com>
Thu, 2 Oct 2014 14:26:21 +0000 (15:26 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 2 Oct 2014 15:35:09 +0000 (16:35 +0100)
* 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

index 032646b187718c61a4b1f80952aec6111b83fd44..03999eb2722180121349a7b489f967c4b7c81d37 100644 (file)
--- 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,