aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/config
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2005-05-27 17:27:03 +0000
committerMark Mitchell <mark@codesourcery.com>2005-05-27 17:27:03 +0000
commitdae043d2cb2e4d22197156c5c5e8d6550798e82b (patch)
tree985201f6d7de694f565057630d938cc7aca81e74 /ld/testsuite/config
parent5114e29d63e1313c5c2ed65f4940a54f40a12ec3 (diff)
downloadgdb-dae043d2cb2e4d22197156c5c5e8d6550798e82b.zip
gdb-dae043d2cb2e4d22197156c5c5e8d6550798e82b.tar.gz
gdb-dae043d2cb2e4d22197156c5c5e8d6550798e82b.tar.bz2
* config/default.exp (CC): Use find_gcc.
(CFLAGS): Define, if no definition is provided. (CXX): Likewise. (CXXFLAGS): Likewise.
Diffstat (limited to 'ld/testsuite/config')
-rw-r--r--ld/testsuite/config/default.exp13
1 files changed, 11 insertions, 2 deletions
diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp
index d99a4bd..d268fd9 100644
--- a/ld/testsuite/config/default.exp
+++ b/ld/testsuite/config/default.exp
@@ -80,9 +80,18 @@ if {[file exists tmpdir/libpath.exp]} {
# The "make check" target in the Makefile passes in
# "CC=$(CC_FOR_TARGET)". But, if the user invokes runtest directly
-# (as when testing an installed linker), CC may not be set.
+# (as when testing an installed linker), these flags may not be set.
if {![info exists CC]} {
- set CC [transform gcc]
+ set CC [find_gcc]
+}
+if {![info exists CFLAGS]} {
+ set CFLAGS "-g -O2"
+}
+if {![info exists CXX]} {
+ set CXX [find_g++]
+}
+if {![info exists CXXFLAGS]} {
+ set CXXFLAGS ""
}
# The mips64-*-linux-gnu compiler defaults to the N32 ABI after