* lib/ld.exp (default_ld_compile): If cc argument is multiple words, use only
the first when trying to verify the availability of the compiler.
This commit is contained in:
parent
4761bb029a
commit
6a98ecf24e
1 changed files with 7 additions and 3 deletions
|
@ -106,9 +106,13 @@ proc default_ld_compile { cc source object } {
|
|||
global CFLAGS
|
||||
global srcdir
|
||||
global subdir
|
||||
|
||||
if {[which $cc] == 0} then {
|
||||
perror "$cc does not exist"
|
||||
|
||||
set cc_prog $cc
|
||||
if {[llength $cc_prog] > 1} then {
|
||||
set cc_prog [lindex $cc_prog 0]
|
||||
}
|
||||
if {[which $cc_prog] == 0} then {
|
||||
perror "$cc_prog does not exist"
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue