aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfweak/elfweak.exp
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-elfweak/elfweak.exp')
-rw-r--r--ld/testsuite/ld-elfweak/elfweak.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elfweak/elfweak.exp b/ld/testsuite/ld-elfweak/elfweak.exp
index 9918865..6982680 100644
--- a/ld/testsuite/ld-elfweak/elfweak.exp
+++ b/ld/testsuite/ld-elfweak/elfweak.exp
@@ -27,6 +27,11 @@ if { ![check_compiler_available] } {
return
}
+# Skip targets where -shared is not supported
+if { ![check_shared_lib_support] } {
+ return
+}
+
# This test can only be run on a couple of ELF platforms.
# Square bracket expressions seem to confuse istarget.
# This is similar to the test that is used in ld-shared, BTW.