aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-plugin
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2017-01-04 09:25:54 +1030
committerAlan Modra <amodra@gmail.com>2017-01-04 09:39:12 +1030
commit47523653a331d0a04470701338a6ed269cc758f4 (patch)
tree9900d305048181b9234f7d4442baa9ab0fefc4e4 /ld/testsuite/ld-plugin
parentae4fda663812129df67e3a70691787060242c0f9 (diff)
downloadbinutils-47523653a331d0a04470701338a6ed269cc758f4.zip
binutils-47523653a331d0a04470701338a6ed269cc758f4.tar.gz
binutils-47523653a331d0a04470701338a6ed269cc758f4.tar.bz2
Check for shared lib support before running ld tests with -shared
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.
Diffstat (limited to 'ld/testsuite/ld-plugin')
-rw-r--r--ld/testsuite/ld-plugin/lto.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp
index b13c540..b525acf 100644
--- a/ld/testsuite/ld-plugin/lto.exp
+++ b/ld/testsuite/ld-plugin/lto.exp
@@ -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
}