Reinstate compiler check

* lib/ld-lib.exp (check_lto_shared_available): Reinstate compiler
	check here too.
This commit is contained in:
Alan Modra 2014-07-07 23:42:45 +09:30
parent 19aef622f3
commit 3bb9e7b43f
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2014-07-07 Alan Modra <amodra@gmail.com>
* lib/ld-lib.exp (check_lto_shared_available): Reinstate compiler
check here too.
2014-07-07 Nick Clifton <nickc@redhat.com>
* lib/ld-lib.exp (check_lto_available): Check that a compiler is

View file

@ -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] {