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>
1 diff -durN gcc-4.4.5.orig/gcc/configure gcc-4.4.5/gcc/configure
2 --- gcc-4.4.5.orig/gcc/configure 2010-10-09 22:58:36.000000000 +0200
3 +++ gcc-4.4.5/gcc/configure 2010-10-09 23:04:50.000000000 +0200
4 @@ -22285,7 +22285,7 @@
6 tls_as_opt="-m64 -Aesame --fatal-warnings"
9 + sh-*-* | sh[34]*-*-*)
11 .section ".tdata","awT",@progbits
13 diff -durN gcc-4.4.5.orig/gcc/configure.ac gcc-4.4.5/gcc/configure.ac
14 --- gcc-4.4.5.orig/gcc/configure.ac 2010-10-09 22:58:36.000000000 +0200
15 +++ gcc-4.4.5/gcc/configure.ac 2010-10-09 23:04:50.000000000 +0200
18 tls_as_opt="-m64 -Aesame --fatal-warnings"
20 - sh-*-* | sh[34]-*-*)
21 + sh-*-* | sh[34]*-*-*)
23 .section ".tdata","awT",@progbits