From: Alan Modra Date: Mon, 7 Jul 2014 14:12:45 +0000 (+0930) Subject: Reinstate compiler check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3bb9e7b43fb3bef0ecfef14b9185661afbe5f4c5;p=binutils-gdb.git Reinstate compiler check * lib/ld-lib.exp (check_lto_shared_available): Reinstate compiler check here too. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 6ab009b036c..1925fed2c3c 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-07-07 Alan Modra + + * lib/ld-lib.exp (check_lto_shared_available): Reinstate compiler + check here too. + 2014-07-07 Nick Clifton * lib/ld-lib.exp (check_lto_available): Check that a compiler is diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index 9f7a414cc99..9dac6be8014 100644 --- a/ld/testsuite/lib/ld-lib.exp +++ b/ld/testsuite/lib/ld-lib.exp @@ -1700,6 +1700,10 @@ proc check_lto_shared_available { } { global CC if {![info exists lto_shared_available_saved]} { + if { [which $CC] == 0 } { + set lto_shared_available_saved 0 + return 0 + } # Check if gcc supports -flto -fuse-linker-plugin -shared set flags "" if [board_info [target_info name] exists cflags] {