diff options
Diffstat (limited to 'ld/testsuite/ld-bootstrap')
-rw-r--r-- | ld/testsuite/ld-bootstrap/bootstrap.exp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/testsuite/ld-bootstrap/bootstrap.exp b/ld/testsuite/ld-bootstrap/bootstrap.exp index 32009d1..f0bac3f 100644 --- a/ld/testsuite/ld-bootstrap/bootstrap.exp +++ b/ld/testsuite/ld-bootstrap/bootstrap.exp @@ -29,6 +29,8 @@ if ![isnative] { return } +global STATIC_LDFLAGS + # Determine if plugin support is present. remote_exec host "$nm --help" "" "/dev/null" "plugin-support" set tmp [file_contents "plugin-support"] @@ -95,6 +97,12 @@ foreach flags $test_flags { continue } + # If -static doesn't work, these tests will fail. + if { $flags == "--static" && [string match "" $STATIC_LDFLAGS] } then { + untested $testname + continue + } + # Plugin support requires linking with a dynamic library which # means that these tests will fail. if { $flags == "--static" && $plugins == "yes" } then { |