summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2007-10-08 09:29:55 +0000
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>2007-10-08 09:29:55 +0000
commit823e8b8d552f1844377e12e4fc38c01a0a7d54e1 (patch)
tree33107d01e24336a792f3f9c60641245591e52e91 /configure
parent8767209990092ca7ad5703fafb4edb73aa4f9f06 (diff)
downloadppe42-gcc-823e8b8d552f1844377e12e4fc38c01a0a7d54e1.tar.gz
ppe42-gcc-823e8b8d552f1844377e12e4fc38c01a0a7d54e1.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129122 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure8
1 files changed, 5 insertions, 3 deletions
diff --git a/configure b/configure
index 3d4545102f6..d8afdf2b4d7 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
OpenPOWER on IntegriCloud