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.0.orig/gcc/configure gcc-4.4.0/gcc/configure
2 --- gcc-4.4.0.orig/gcc/configure 2009-05-27 21:38:08.000000000 +0200
3 +++ gcc-4.4.0/gcc/configure 2009-05-27 21:38:42.000000000 +0200
4 @@ -22205,7 +22205,7 @@
6 tls_as_opt="-m64 -Aesame --fatal-warnings"
9 + sh-*-* | sh[34]*-*-*)
11 .section ".tdata","awT",@progbits
13 diff -durN gcc-4.4.0.orig/gcc/configure.ac gcc-4.4.0/gcc/configure.ac
14 --- gcc-4.4.0.orig/gcc/configure.ac 2009-05-27 21:38:08.000000000 +0200
15 +++ gcc-4.4.0/gcc/configure.ac 2009-05-27 21:38:42.000000000 +0200
18 tls_as_opt="-m64 -Aesame --fatal-warnings"
20 - sh-*-* | sh[34]-*-*)
21 + sh-*-* | sh[34]*-*-*)
23 .section ".tdata","awT",@progbits