From: Mark Mitchell Date: Fri, 27 May 2005 17:27:03 +0000 (+0000) Subject: * config/default.exp (CC): Use find_gcc. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dae043d2cb2e4d22197156c5c5e8d6550798e82b;p=binutils-gdb.git * config/default.exp (CC): Use find_gcc. (CFLAGS): Define, if no definition is provided. (CXX): Likewise. (CXXFLAGS): Likewise. --- 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 + + * 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 * 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 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