aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild-gcc.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/build-gcc.sh b/build-gcc.sh
index e6aef9d0f..f23edb16c 100755
--- a/build-gcc.sh
+++ b/build-gcc.sh
@@ -256,6 +256,7 @@ if [ "$BUILD_DEBUGGABLE" = "yes" ] ; then
else
CFLAGS_FOR_BUILD="-O2 -s"
fi
+CXXFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD"
LDFLAGS_FOR_BUILD=
if [ "$MINGW" = "yes" ] ; then
@@ -263,9 +264,10 @@ if [ "$MINGW" = "yes" ] ; then
fi
CFLAGS="$CFLAGS_FOR_BUILD $HOST_CFLAGS"
+CXXFLAGS="$CXXFLAGS_FOR_BUILD $HOST_CFLAGS"
LDFLAGS="$LDFLAGS_FOR_BUILD $HOST_LDFLAGS"
-export CFLAGS LDFLAGS CFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD
+export CFLAGS CXXFLAGS LDFLAGS CFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD
# This extra flag is used to slightly speed up the build
EXTRA_CONFIG_FLAGS="--disable-bootstrap"