diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-05-27 17:27:03 +0000 |
---|---|---|
committer | Mark Mitchell <mark@codesourcery.com> | 2005-05-27 17:27:03 +0000 |
commit | 67b323588e26cb4cfa0c7c572387570bd0ba4b61 (patch) | |
tree | 462646e8c1221997ee1695ce5ed3cf983ca8581f /ld | |
parent | d839eba64c10178c96ee976401d9ab9b753cfc25 (diff) | |
download | binutils-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')
-rw-r--r-- | ld/testsuite/ChangeLog | 10 | ||||
-rw-r--r-- | ld/testsuite/config/default.exp | 13 |
2 files changed, 18 insertions, 5 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 0590ddf35c..00e4d27002 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 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 |