From: Jim Meyering Date: Mon, 7 May 2012 20:01:20 +0000 (+0200) Subject: tests: avoid LD_PRELOAD lookup error for dlsym X-Git-Tag: v8.17~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fedebc59a040a7e34dce5c987b7f6fcf2cefa904;p=thirdparty%2Fcoreutils.git tests: avoid LD_PRELOAD lookup error for dlsym * tests/cp/nfs-removal-race: Link with -ldl. --- diff --git a/tests/cp/nfs-removal-race b/tests/cp/nfs-removal-race index 6a435b0c5d..cb8aba37f9 100755 --- a/tests/cp/nfs-removal-race +++ b/tests/cp/nfs-removal-race @@ -57,7 +57,7 @@ __xstat (int ver, const char *path, struct stat *st) EOF # Then compile/link it: -$CC -shared -fPIC -O2 k.c -o k.so \ +$CC -shared -fPIC -O2 k.c -o k.so -ldl \ || framework_failure_ 'failed to compile with -shared -fPIC' touch d2 || framework_failure_