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/libgomp/configure gcc-4.4.0/libgomp/configure
2 --- gcc-4.4.0.orig/libgomp/configure 2009-04-21 11:08:08.000000000 +0200
3 +++ gcc-4.4.0/libgomp/configure 2009-05-27 21:38:19.000000000 +0200
6 # Add -Wall -Werror if we are using GCC.
7 if test "x$GCC" = "xyes"; then
8 - XCFLAGS="$XCFLAGS -Wall -Werror"
9 + XCFLAGS="$XCFLAGS -Wall"
12 # Find other programs we need.