summaryrefslogtreecommitdiffstats
path: root/util/crossgcc
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2016-12-22 16:19:37 +0100
committerNico Huber <nico.h@gmx.de>2016-12-28 03:36:58 +0100
commit010ecf800956f389bc34e09b968fe8934d4aa2ae (patch)
tree6323e895d3326d801bc50fc38b579eaac898494b /util/crossgcc
parentae6187f01f29cb383a1d3bba0ce2614b17c18c5a (diff)
downloadcoreboot-010ecf800956f389bc34e09b968fe8934d4aa2ae.tar.gz
coreboot-010ecf800956f389bc34e09b968fe8934d4aa2ae.tar.bz2
coreboot-010ecf800956f389bc34e09b968fe8934d4aa2ae.zip
buildgcc: Indicate CXXFLAGS for binutils
CXXFLAGS seems to be used a lot and have to be specified independently from CFLAGS. Change-Id: Iff4c76e54a46e908299b532fd848165a3dc04d43 Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: https://review.coreboot.org/17937 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'util/crossgcc')
-rwxr-xr-xutil/crossgcc/buildgcc5
1 files changed, 4 insertions, 1 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index b3deda5f3da8..273f921a15dd 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -579,7 +579,10 @@ build_BINUTILS() {
--target=${TARGETARCH} --enable-targets=${TARGETARCH}${ADDITIONALTARGET} \
--disable-werror --disable-nls --enable-lto --enable-gold \
--enable-interwork --enable-multilib \
- --enable-plugins --enable-multilibs CFLAGS="$HOSTCFLAGS" || touch .failed
+ --enable-plugins --enable-multilibs
+ CFLAGS="$HOSTCFLAGS" \
+ CXXFLAGS="$HOSTCFLAGS" \
+ || touch .failed
$MAKE $JOBS || touch .failed
$MAKE install DESTDIR=$DESTDIR || touch .failed
}