This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: ld testsuite CFLAGS handling
- From: Mark Mitchell <mark at codesourcery dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 27 May 2005 10:29:09 -0700
- Subject: PATCH: ld testsuite CFLAGS handling
- Reply-to: mark at codesourcery dot com
This patch was approved back in March:
http://sourceware.org/ml/binutils/2005-03/msg00735.html
but I misapplied it.
I've checked in this patch, which merely brings things into the
already approved state. I confirmed that the testsuite still works,
both for build-tree and installed-linker testing.
Apologies for the misapplication; thanks to Ian and Daniel for
reviewing the original patch.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
2005-05-27 Mark Mitchell <mark@codesourcery.com>
* config/default.exp (CC): Use find_gcc.
(CFLAGS): Define, if no definition is provided.
(CXX): Likewise.
(CXXFLAGS): Likewise.
Index: config/default.exp
===================================================================
RCS file: /cvs/src/src/ld/testsuite/config/default.exp,v
retrieving revision 1.10
diff -c -5 -p -r1.10 default.exp
*** config/default.exp 12 May 2005 07:32:04 -0000 1.10
--- config/default.exp 27 May 2005 17:25:53 -0000
*************** if {[file exists tmpdir/libpath.exp]} {
*** 78,90 ****
}
}
# 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.
if {![info exists CC]} {
! set CC [transform gcc]
}
# The mips64-*-linux-gnu compiler defaults to the N32 ABI after
# installed, but to the O32 ABI in the build tree, because of some
# specs-file hacks. Make sure we use an ABI that is compatible with
--- 78,99 ----
}
}
# 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), these flags may not be set.
if {![info exists CC]} {
! 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
# installed, but to the O32 ABI in the build tree, because of some
# specs-file hacks. Make sure we use an ABI that is compatible with