[PATCH] Pass CXXFLAGS to binutils/gold
Michael Hope
michael.hope@linaro.org
Wed Oct 5 01:21:00 GMT 2011
# HG changeset patch
# User Michael Hope <michael.hope@linaro.org>
# Date 1317777345 -46800
# Node ID f051032a1070eda28557dd738c35446b44787217
# Parent a56c84719b61620308d4a579991b98f936e7abf7
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>
diff -r a56c84719b61 -r f051032a1070 scripts/build/binutils/binutils.sh
--- a/scripts/build/binutils/binutils.sh Wed Oct 05 11:16:49 2011 +1300
+++ b/scripts/build/binutils/binutils.sh Wed Oct 05 14:15:45 2011 +1300
@@ -69,6 +69,7 @@
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} \
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list