Pass CXXFLAGS to binutils/gold.
authorMichael Hope <michael.hope@linaro.org>
Wed Oct 05 14:15:45 2011 +1300 (2011-10-05)
changeset 26979cd87d279a99
parent 2696 5f7c6eed805d
child 2698 7501f41e3bbf
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>
scripts/build/binutils/binutils.sh
     1.1 --- a/scripts/build/binutils/binutils.sh	Wed Sep 28 15:29:11 2011 +1300
     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}                                       \