diff options
author | Alan Modra <amodra@gmail.com> | 2017-01-04 09:25:54 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-01-04 09:39:12 +1030 |
commit | 47523653a331d0a04470701338a6ed269cc758f4 (patch) | |
tree | 9900d305048181b9234f7d4442baa9ab0fefc4e4 /ld/testsuite/ld-elf/audit.exp | |
parent | ae4fda663812129df67e3a70691787060242c0f9 (diff) | |
download | gdb-47523653a331d0a04470701338a6ed269cc758f4.zip gdb-47523653a331d0a04470701338a6ed269cc758f4.tar.gz gdb-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-elf/audit.exp')
-rw-r--r-- | ld/testsuite/ld-elf/audit.exp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/audit.exp b/ld/testsuite/ld-elf/audit.exp index aad5339..83ee355 100644 --- a/ld/testsuite/ld-elf/audit.exp +++ b/ld/testsuite/ld-elf/audit.exp @@ -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 |