diff options
Diffstat (limited to 'ld/testsuite/config/default.exp')
-rw-r--r-- | ld/testsuite/config/default.exp | 13 |
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 |