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.4.orig/include/libiberty.h gcc-4.4.4/include/libiberty.h
2 --- gcc-4.4.4.orig/include/libiberty.h 2008-06-24 03:42:31.000000000 +0200
3 +++ gcc-4.4.4/include/libiberty.h 2010-05-16 19:12:50.000000000 +0200
5 /* Like sprintf but provides a pointer to malloc'd storage, which must
6 be freed by the caller. */
8 +/* asprintf may be declared as a macro by glibc with __USE_FORTIFY_LEVEL. */
10 extern int asprintf (char **, const char *, ...) ATTRIBUTE_PRINTF_2;
14 #if !HAVE_DECL_VASPRINTF
15 /* Like vsprintf but provides a pointer to malloc'd storage, which