summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/ls/getxattr-speedup4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ls/getxattr-speedup b/tests/ls/getxattr-speedup
index d32e24abb..967f7c95f 100755
--- a/tests/ls/getxattr-speedup
+++ b/tests/ls/getxattr-speedup
@@ -47,8 +47,8 @@ ssize_t lgetxattr(const char *path, const char *name, void *value, size_t size)
EOF
# Then compile/link it:
-$CC -fPIC -O2 -c k.c || framework_failure_ 'failed to compile with -fPIC'
-ld -G k.o -o k.so || framework_failure_ 'failed to invoke ld -G ...'
+$CC -shared -fPIC -O2 k.c -o k.so \
+ || framework_failure_ 'failed to compile with -shared -fPIC'
# Create a few files:
seq 20 | xargs touch || framework_failure_