Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-10-08 13:30:35 +0400
committerNick Clifton <nickc@redhat.com>2007-10-08 13:30:35 +0400
commit77961173731e8e3da656b1d339fc203a898e87db (patch)
tree84b74dbfd319358bb85e21b67da78ee7ecc7ae45
parent2fb5f81aa51b0418554f310f384c398a54892beb (diff)
* 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.
-rw-r--r--ChangeLog8
-rwxr-xr-xconfigure8
-rw-r--r--configure.ac8
3 files changed, 18 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index f4534ccd7..a3d10489c 100644
--- 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.
+
2007-10-01 Paolo Bonzini <bonzini@gnu.org>
* Makefile.tpl (AR_FOR_BUILD, AS_FOR_BUILD, CXX_FOR_BUILD,
diff --git a/configure b/configure
index 3d4545102..d8afdf2b4 100755
--- 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
diff --git a/configure.ac b/configure.ac
index e1cce0746..da6adf1e6 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