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>
This commit is contained in:
Michael Hope 2011-10-05 14:15:45 +13:00
parent 1453251040
commit 1215a8fbcc

View File

@ -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} \