Check for shared lib support before running ld tests with -shared
authorAlan Modra <amodra@gmail.com>
Tue, 3 Jan 2017 22:55:54 +0000 (09:25 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 3 Jan 2017 23:09:12 +0000 (09:39 +1030)
Another fix now that we run these tests non-native.

* testsuite/ld-elf/audit.exp: Check for shared lib support.
* testsuite/ld-elf/compress.exp: Likewise.
* testsuite/ld-elf/dwarf.exp: Likewise.
* testsuite/ld-elf/shared.exp: Likewise.
* testsuite/ld-elf/wrap.exp: Likewise.
* testsuite/ld-ifunc/ifunc.exp: Likewise.
* testsuite/ld-plugin/lto.exp: Check $CXX exists.

ld/ChangeLog
ld/testsuite/ld-elf/audit.exp
ld/testsuite/ld-elf/compress.exp
ld/testsuite/ld-elf/dwarf.exp
ld/testsuite/ld-elf/shared.exp
ld/testsuite/ld-elf/wrap.exp
ld/testsuite/ld-ifunc/ifunc.exp
ld/testsuite/ld-plugin/lto.exp

index b6a82847daa0ce0f2f469c08100922e5ab083987..b855c74021fd8bb5c942c88bb893322472b1c72c 100644 (file)
@@ -1,3 +1,13 @@
+2017-01-04  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-elf/audit.exp: Check for shared lib support.
+       * testsuite/ld-elf/compress.exp: Likewise.
+       * testsuite/ld-elf/dwarf.exp: Likewise.
+       * testsuite/ld-elf/shared.exp: Likewise.
+       * testsuite/ld-elf/wrap.exp: Likewise.
+       * testsuite/ld-ifunc/ifunc.exp: Likewise.
+       * testsuite/ld-plugin/lto.exp: Check $CXX exists.
+
 2017-01-03  Alan Modra  <amodra@gmail.com>
 
        * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Do not
index aad5339daae3b3a53bb2282539ca99b5a0d94a7c..83ee35582e64b9048c073af38162ba4306a54e5a 100644 (file)
@@ -25,6 +25,12 @@ if ![is_elf_format] {
     return
 }
 
+# Skip targets where -shared is not supported
+
+if ![check_shared_lib_support] {
+    return
+}
+
 # Check if compiler works
 if { [which $CC] == 0 } {
     return
index b2b6ca112460c852015ed8bae79c4d8d90474779..5620f3ca4bfe8764a27debf60df833973b818ae7 100644 (file)
@@ -25,6 +25,12 @@ if ![is_elf_format] {
     return
 }
 
+# Skip targets where -shared is not supported
+
+if ![check_shared_lib_support] {
+    return
+}
+
 # Check if compiler works
 if { [which $CC] == 0 } {
     return
index 572c704979a64413599e3ab3bd8a29b2a5bf1f4c..529ebccd505d73d2bf4b9e27b516742e0c353cf8 100644 (file)
@@ -29,6 +29,12 @@ if ![is_elf_format] {
     return
 }
 
+# Skip targets where -shared is not supported
+
+if ![check_shared_lib_support] {
+    return
+}
+
 # Check if compiler works
 if { [which $CC] == 0 } {
     return
index aac3accd8559cf493f1504c2b9d9878a039cdae9..f38cd7b013d479f5fc86f5af53ddd62388e29a63 100644 (file)
@@ -25,6 +25,12 @@ if ![is_elf_format] {
     return
 }
 
+# Skip targets where -shared is not supported
+
+if ![check_shared_lib_support] {
+    return
+}
+
 # Check to see if the C compiler works
 if { [which $CC] == 0 } {
     return
index 4bf8faa527122cb79716b974b2090960d36c7048..4a166bedb706a7f2bc62cc0d5f6bac54d943e43e 100644 (file)
@@ -25,6 +25,12 @@ if ![is_elf_format] {
     return
 }
 
+# Skip targets where -shared is not supported
+
+if ![check_shared_lib_support] {
+    return
+}
+
 # Check if compiler works
 if { [which $CC] == 0 } {
     return
index d7519b546940bc7c50b38066fa9433db0b44ad21..ffff2f1ae56b03382456d253bc1a65025f8a614a 100644 (file)
@@ -41,6 +41,12 @@ if {!(([istarget "i?86-*-*"]
     return
 }
 
+# Skip targets where -shared is not supported
+
+if ![check_shared_lib_support] {
+    return
+}
+
 # We need a working compiler.  (Strictly speaking this is
 # not true, we could use target specific assembler files).
 if { [which $CC] == 0 } {
index b13c540850f58e0769854fed9cff6d7769fb3d05..b525acf0422ec8deb53149b37b5f62ed6dc15d2c 100644 (file)
@@ -18,8 +18,8 @@
 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-# Check to see if the C compiler works
-if { [which $CC] == 0 } {
+# Check to see if the C and C++ compilers work
+if { [which $CC] == 0 || [which $CXX] == 0 } {
     return
 }
 
This page took 0.029891 seconds and 4 git commands to generate.