Commit 6691a79e by Mohan Embar Committed by Mohan Embar

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
parent 6e08ecd1
2003-10-05 Mohan Embar <gnustuff@thisiscool.com>
* configure.in: Allow explicit specification of CFLAGS_FOR_BUILD.
* configure: Rebuilt
* Makefile.tpl: Use CFLAGS_FOR_BUILD computed by configure
* Makefile.in: Rebuilt
2003-10-03 H.J. Lu <hongjiu.lu@intel.com> 2003-10-03 H.J. Lu <hongjiu.lu@intel.com>
* ltconfig (sys_lib_search_path_spec): Fix a typo for HPUX. * ltconfig (sys_lib_search_path_spec): Fix a typo for HPUX.
......
...@@ -142,7 +142,7 @@ PWD_COMMAND = $${PWDCMD-pwd} ...@@ -142,7 +142,7 @@ PWD_COMMAND = $${PWDCMD-pwd}
# compilers to use to create programs which must be run in the build # compilers to use to create programs which must be run in the build
# environment. # environment.
CC_FOR_BUILD = @CC_FOR_BUILD@ CC_FOR_BUILD = @CC_FOR_BUILD@
CFLAGS_FOR_BUILD = $(CFLAGS) CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
CXX_FOR_BUILD = $(CXX) CXX_FOR_BUILD = $(CXX)
......
...@@ -145,7 +145,7 @@ PWD_COMMAND = $${PWDCMD-pwd} ...@@ -145,7 +145,7 @@ PWD_COMMAND = $${PWDCMD-pwd}
# compilers to use to create programs which must be run in the build # compilers to use to create programs which must be run in the build
# environment. # environment.
CC_FOR_BUILD = @CC_FOR_BUILD@ CC_FOR_BUILD = @CC_FOR_BUILD@
CFLAGS_FOR_BUILD = $(CFLAGS) CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
CXX_FOR_BUILD = $(CXX) CXX_FOR_BUILD = $(CXX)
......
...@@ -1919,6 +1919,10 @@ case " $target_configdirs " in ...@@ -1919,6 +1919,10 @@ case " $target_configdirs " in
;; ;;
esac 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 # On Canadian crosses, we'll be searching the right directories for
# the previously-installed cross compiler, so don't bother to add # the previously-installed cross compiler, so don't bother to add
# flags for directories within the install tree of the compiler # flags for directories within the install tree of the compiler
...@@ -2060,6 +2064,7 @@ NCN_STRICT_CHECK_TOOL(OBJDUMP, objdump) ...@@ -2060,6 +2064,7 @@ NCN_STRICT_CHECK_TOOL(OBJDUMP, objdump)
AC_SUBST(CC) AC_SUBST(CC)
AC_SUBST(CXX) AC_SUBST(CXX)
AC_SUBST(CFLAGS) AC_SUBST(CFLAGS)
AC_SUBST(CFLAGS_FOR_BUILD)
AC_SUBST(CXXFLAGS) AC_SUBST(CXXFLAGS)
AC_SUBST(DEFAULT_YACC) AC_SUBST(DEFAULT_YACC)
AC_SUBST(DEFAULT_LEX) AC_SUBST(DEFAULT_LEX)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment