configure.ac (CFLAGS_FOR_BUILD, [...]): Default them to host flags only for $host...
authorMike Frysinger <vapier@gentoo.org>
Mon, 8 Oct 2007 09:29:55 +0000 (09:29 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Mon, 8 Oct 2007 09:29:55 +0000 (09:29 +0000)
* 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

ChangeLog
configure
configure.ac

index 4293f289e8ada7f99c9914b3dea8b7bb453984e3..3c88e364b660fc4e59b96fc4894cec190ab36bb3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-10-08  Mike Frysinger  <vapier@gentoo.org>
+
+       * 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.
+
 2006-10-04  Seongbae Park <seongbae.park@gmail.com>
 
        * MAINTAINERS (Register allocation reviewer): Add myself.
index 3d4545102f6b439738b2da729065403d9221c944..d8afdf2b4d761a13c7e6dd0497cc80f5fc83559c 100755 (executable)
--- a/configure
+++ b/configure
@@ -5876,9 +5876,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
index e1cce0746e2cce9039baffd586155149bb0822a5..da6adf1e6b89820ef670e64342cba6ec2cb24771 100644 (file)
@@ -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