From: Nick Alcock Date: Thu, 2 Oct 2014 14:26:21 +0000 (+0100) Subject: tests: fix false failure for test referencing libdl X-Git-Tag: v8.24~207 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d3ba46e580cbc9e81edc4e8dd759f9fb0775161;p=thirdparty%2Fcoreutils.git 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. --- 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,