diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-10-08 09:29:55 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2007-10-08 09:29:55 +0000 |
commit | f019adc11693d991cd68e086c04e124fab610c4c (patch) | |
tree | 33107d01e24336a792f3f9c60641245591e52e91 /configure.ac | |
parent | dff6abb2827e047f9224c0cd213731633db7c274 (diff) | |
download | gcc-f019adc11693d991cd68e086c04e124fab610c4c.tar.gz |
configure.ac (CFLAGS_FOR_BUILD, [...]): Default them to host flags only for $host = $build.
* configure.ac (CFLAGS_FOR_BUILD, CXXFLAGS_FOR_BUILD, LDFLAGS_FOR_BUILD): Default them to host flags only
for $host = $build.
Set default CXXFLAGS_FOR_BUILD to CXXFLAGS, not CFLAGS.
Set default LDFLAGS_FOR_BUILD to LDFLAGS, not CFLAGS.
* configure: Regenerate.
From-SVN: r129122
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index e1cce0746e2..da6adf1e6b8 100644 --- a/configure.ac +++ b/configure.ac @@ -2387,9 +2387,11 @@ esac # Allow the user to override the flags for # our build compiler if desired. -CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} -CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CFLAGS}} -LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${CFLAGS}} +if test x"${build}" = x"${host}" ; then + CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} + CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}} + LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}} +fi # On Canadian crosses, we'll be searching the right directories for # the previously-installed cross compiler, so don't bother to add |