* config/default.exp (CC): Use find_gcc.

(CFLAGS): Define, if no definition is provided.
	(CXX): Likewise.
	(CXXFLAGS): Likewise.
This commit is contained in:
Mark Mitchell 2005-05-27 17:27:03 +00:00
parent 5114e29d63
commit dae043d2cb
2 changed files with 18 additions and 5 deletions

View file

@ -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> 2005-05-24 H.J. Lu <hongjiu.lu@intel.com>
* ld-mmix/bpo-6.d: Updated. * ld-mmix/bpo-6.d: Updated.
@ -161,9 +168,6 @@
* config/default.exp: Do not load libpath.exp if it does not * config/default.exp: Do not load libpath.exp if it does not
exist. exist.
(CC): Provide fallback definition. (CC): Provide fallback definition.
(CFLAGS): Likewise.
(CXX): Likewise.
(CXXFLAGS): Likewise.
2005-03-24 Eric Christopher <echristo@redhat.com> 2005-03-24 Eric Christopher <echristo@redhat.com>

View file

@ -80,9 +80,18 @@ if {[file exists tmpdir/libpath.exp]} {
# The "make check" target in the Makefile passes in # The "make check" target in the Makefile passes in
# "CC=$(CC_FOR_TARGET)". But, if the user invokes runtest directly # "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]} { 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 # The mips64-*-linux-gnu compiler defaults to the N32 ABI after