aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1995-05-23 00:20:44 +0000
committerKen Raeburn <raeburn@cygnus>1995-05-23 00:20:44 +0000
commit6a98ecf24e6933c7b1da49b47d664694d324c308 (patch)
treede0ebf41409a843075314fc275529a2d47f01472 /ld
parent4761bb029a85d6a85cd8b041b1a28a94ddf0f516 (diff)
downloadgdb-6a98ecf24e6933c7b1da49b47d664694d324c308.zip
gdb-6a98ecf24e6933c7b1da49b47d664694d324c308.tar.gz
gdb-6a98ecf24e6933c7b1da49b47d664694d324c308.tar.bz2
* 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.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/lib/ld.exp10
1 files changed, 7 insertions, 3 deletions
diff --git a/ld/testsuite/lib/ld.exp b/ld/testsuite/lib/ld.exp
index 1a63b68..0121c0d 100644
--- a/ld/testsuite/lib/ld.exp
+++ b/ld/testsuite/lib/ld.exp
@@ -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
}