]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/testsuite/ld-elf/wrap.exp
Run more ld tests when not native
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-elf / wrap.exp
index be88ef66cb424d7dd25e8dafaee091360259762d..4bf8faa527122cb79716b974b2090960d36c7048 100644 (file)
@@ -25,11 +25,6 @@ if ![is_elf_format] {
     return
 }
 
-# The following tests require running the executable generated by ld.
-if ![isnative] {
-    return
-}
-
 # Check if compiler works
 if { [which $CC] == 0 } {
     return
@@ -46,10 +41,10 @@ set build_tests {
 
 set run_tests {
     {"Run with libwrap1a.so and libwrap1b.so"
-     "--wrap par tmpdir/libwrap1a.so tmpdir/libwrap1b.so" ""
+     "-Wl,--no-as-needed,--wrap,par tmpdir/libwrap1a.so tmpdir/libwrap1b.so" ""
      {wrap1.c} "wrap1" "wrap1.out"}
     {"Run with libwrap1b.so and libwrap1a.so"
-     "--wrap par tmpdir/libwrap1b.so tmpdir/libwrap1a.so" ""
+     "-Wl,--no-as-needed,--wrap,par tmpdir/libwrap1b.so tmpdir/libwrap1a.so" ""
      {wrap1.c} "wrap1" "wrap1.out"}
 }