summaryrefslogtreecommitdiff
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
commit67b323588e26cb4cfa0c7c572387570bd0ba4b61 (patch)
tree462646e8c1221997ee1695ce5ed3cf983ca8581f /ld/testsuite/config
parentd839eba64c10178c96ee976401d9ab9b753cfc25 (diff)
downloadbinutils-redhat-67b323588e26cb4cfa0c7c572387570bd0ba4b61.tar.gz
* 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 d99a4bd5a2..d268fd9698 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