From 1057a150401c3204fc69c0f4bc4f7dc0af17cfc1 Mon Sep 17 00:00:00 2001 From: Michael Hope Date: Wed, 5 Oct 2011 14:15:45 +1300 Subject: Pass CXXFLAGS to binutils/gold. The GOLD linker is written in C++. Pass CT_CFLAGS_FOR_HOST as CXXFLAGS to configure so that any host specific flags are passed through. It feels a bit funny passing CFLAGS as CXXFLAGS, but the PPL and GCC target rules already do the same. Signed-off-by: Michael Hope (transplanted from 9cd87d279a99bd32a364f12d4b2d6d37e1d9248b) diff --git a/scripts/build/binutils/binutils.sh b/scripts/build/binutils/binutils.sh index 8cb7905..ca67b82 100644 --- a/scripts/build/binutils/binutils.sh +++ b/scripts/build/binutils/binutils.sh @@ -64,6 +64,7 @@ do_binutils() { CT_DoExecLog CFG \ CFLAGS="${CT_CFLAGS_FOR_HOST}" \ + CXXFLAGS="${CT_CFLAGS_FOR_HOST}" \ "${CT_SRC_DIR}/binutils-${CT_BINUTILS_VERSION}/configure" \ --build=${CT_BUILD} \ --host=${CT_HOST} \ -- cgit v0.10.2-6-g49f6