]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid LD_PRELOAD lookup error for dlsym
authorJim Meyering <meyering@redhat.com>
Mon, 7 May 2012 20:01:20 +0000 (22:01 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 7 May 2012 20:01:20 +0000 (22:01 +0200)
* tests/cp/nfs-removal-race: Link with -ldl.

tests/cp/nfs-removal-race

index 6a435b0c5d379acfca87679b87535bf93988f35d..cb8aba37f9924fb22cf2f83da42688db7d0cba70 100755 (executable)
@@ -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_