Pass CXXFLAGS to binutils/gold. 1.12
authorMichael Hope <michael.hope@linaro.org>
Wed Oct 05 14:15:45 2011 +1300 (2011-10-05)
branch1.12
changeset 27085ef76cd1379f
parent 2688 dceed2960d82
child 2709 3388779a8321
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)
scripts/build/binutils/binutils.sh
     1.1 --- a/scripts/build/binutils/binutils.sh	Sat Sep 24 22:08:46 2011 +0200
     1.2 +++ b/scripts/build/binutils/binutils.sh	Wed Oct 05 14:15:45 2011 +1300
     1.3 @@ -64,6 +64,7 @@
     1.4  
     1.5      CT_DoExecLog CFG                                            \
     1.6      CFLAGS="${CT_CFLAGS_FOR_HOST}"                              \
     1.7 +    CXXFLAGS="${CT_CFLAGS_FOR_HOST}"                            \
     1.8      "${CT_SRC_DIR}/binutils-${CT_BINUTILS_VERSION}/configure"   \
     1.9          --build=${CT_BUILD}                                     \
    1.10          --host=${CT_HOST}                                       \