From 1b377e4960438810a137aaedc1ff16a2e2114e9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Chigot?= Date: Wed, 9 Nov 2022 17:21:03 +0100 Subject: ld/testsuite: skip ld-size when -shared is not supported ld/ChangeLog: * testsuite/ld-size/size.exp: Skip when -shared is not supported. --- ld/testsuite/ld-size/size.exp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ld/testsuite/ld-size/size.exp b/ld/testsuite/ld-size/size.exp index e159628..64793c0 100644 --- a/ld/testsuite/ld-size/size.exp +++ b/ld/testsuite/ld-size/size.exp @@ -33,6 +33,12 @@ if {!(([istarget "i?86-*-*"] return } +# Skip when -shared is not supported +if { ![check_shared_lib_support] } { + verbose "Size relocation tests not run - shared support disabled" + return +} + # So as to avoid rewriting every last test case here in a nacl variant, # we use black magic to massage the generic cases into nacl-variant cases. if [istarget "*-*-nacl*"] { -- cgit v1.1