summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hope <michael.hope@linaro.org>2011-10-05 01:15:45 (GMT)
committerMichael Hope <michael.hope@linaro.org>2011-10-05 01:15:45 (GMT)
commit1057a150401c3204fc69c0f4bc4f7dc0af17cfc1 (patch)
tree9213e9287a2627d772b5004ff94f36d8fa16579b
parent68c0a3bc7b7bec6b6cb25fc1d6e3e1678aa40e10 (diff)
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 <michael.hope@linaro.org> (transplanted from 9cd87d279a99bd32a364f12d4b2d6d37e1d9248b)
-rw-r--r--scripts/build/binutils/binutils.sh1
1 files changed, 1 insertions, 0 deletions
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} \