aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorMohan Embar <gnustuff@thisiscool.com>2003-10-06 03:40:08 +0000
committerMohan Embar <membar@gcc.gnu.org>2003-10-06 03:40:08 +0000
commit6691a79e0687f631d0d99f539429d2acdfbf9234 (patch)
tree796d96198d1c4a8e3116eba1800ed180d7f4ea09 /configure.in
parent6e08ecd16c43f224aa7ed4f8fa213ad0e530da0f (diff)
downloadgcc-6691a79e0687f631d0d99f539429d2acdfbf9234.zip
gcc-6691a79e0687f631d0d99f539429d2acdfbf9234.tar.gz
gcc-6691a79e0687f631d0d99f539429d2acdfbf9234.tar.bz2
configure.in: Allow explicit specification of CFLAGS_FOR_BUILD.
* configure.in: Allow explicit specification of CFLAGS_FOR_BUILD. * configure: Rebuilt * Makefile.tpl: Use CFLAGS_FOR_BUILD computed by configure * Makefile.in: Rebuilt From-SVN: r72130
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 3d30f62..1ab21a8 100644
--- a/configure.in
+++ b/configure.in
@@ -1919,6 +1919,10 @@ case " $target_configdirs " in
;;
esac
+# Allow the user to override the flags for
+# our build compiler if desired.
+CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
+
# On Canadian crosses, we'll be searching the right directories for
# the previously-installed cross compiler, so don't bother to add
# flags for directories within the install tree of the compiler
@@ -2060,6 +2064,7 @@ NCN_STRICT_CHECK_TOOL(OBJDUMP, objdump)
AC_SUBST(CC)
AC_SUBST(CXX)
AC_SUBST(CFLAGS)
+AC_SUBST(CFLAGS_FOR_BUILD)
AC_SUBST(CXXFLAGS)
AC_SUBST(DEFAULT_YACC)
AC_SUBST(DEFAULT_LEX)