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 -ru ltrace-0.5.3.org/configure ltrace-0.5.3/configure
2 --- ltrace-0.5.3.org/configure 2011-08-21 18:55:15.000000000 +0200
3 +++ ltrace-0.5.3/configure 2011-08-21 18:54:46.000000000 +0200
7 echo -n "checking HOST_OS... "
9 -if [ "$HOST_OS" = "Linux" ]
10 +if [ -z "$HOST_OS" ] ; then
11 + HOST_OS=$( uname -s )
13 + echo -n "using preset: "
15 +if [ "$HOST_OS" = "Linux" -o "$HOST_OS" = "linux" ]