tests: avoid LD_PRELOAD lookup error for dlsym

* tests/cp/nfs-removal-race: Link with -ldl.
This commit is contained in:
Jim Meyering committed 2012-05-07 22:01:20 +02:00
1 parent ee9e43460f
commit fedebc59a0
1 file changed
+1 -1
+1 -1
View File
@@ -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_