summaryrefslogtreecommitdiff
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
parent5114e29d63e1313c5c2ed65f4940a54f40a12ec3 (diff)
downloadbinutils-gdb-dae043d2cb2e4d22197156c5c5e8d6550798e82b.tar.gz
* config/default.exp (CC): Use find_gcc.
(CFLAGS): Define, if no definition is provided. (CXX): Likewise. (CXXFLAGS): Likewise.
-rw-r--r--ld/testsuite/ChangeLog10
-rw-r--r--ld/testsuite/config/default.exp13
2 files changed, 18 insertions, 5 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 0590ddf35ce..00e4d270021 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2005-05-27 Mark Mitchell <mark@codesourcery.com>
+
+ * config/default.exp (CC): Use find_gcc.
+ (CFLAGS): Define, if no definition has been provided by the user.
+ (CXX): Likewise.
+ (CXXFLAGS): Likewise.
+
2005-05-24 H.J. Lu <hongjiu.lu@intel.com>
* ld-mmix/bpo-6.d: Updated.
@@ -161,9 +168,6 @@
* config/default.exp: Do not load libpath.exp if it does not
exist.
(CC): Provide fallback definition.
- (CFLAGS): Likewise.
- (CXX): Likewise.
- (CXXFLAGS): Likewise.
2005-03-24 Eric Christopher <echristo@redhat.com>
diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp
index d99a4bd5a20..d268fd96980 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