From e4adc5c60ea1d1ef1574ab0fbfc9a728485eb30b Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Thu, 22 Dec 2016 16:19:37 +0100 Subject: [PATCH] UPSTREAM: buildgcc: Indicate CXXFLAGS for binutils CXXFLAGS seems to be used a lot and have to be specified independently from CFLAGS. BUG=None BRANCH=None TEST=None Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/17937 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Martin Roth Change-Id: Iff4c76e54a46e908299b532fd848165a3dc04d43 Reviewed-on: https://chromium-review.googlesource.com/425261 Commit-Ready: Furquan Shaikh Tested-by: Furquan Shaikh Reviewed-by: Aaron Durbin --- util/crossgcc/buildgcc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index b3deda5f3d..273f921a15 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 }