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 glibc-2.13.orig/elf/dl-lookup.c glibc-2.13/elf/dl-lookup.c
2 --- glibc-2.13.orig/elf/dl-lookup.c 2009-03-30 23:14:32.000000000 +0200
3 +++ glibc-2.13/elf/dl-lookup.c 2009-11-13 00:51:36.000000000 +0100
9 + /* HACK: MIPS marks its lazy evaluation stubs with SHN_UNDEF
10 + symbols, we skip them. */
11 + if (sym->st_shndx == SHN_UNDEF)
14 /* Global definition. Just what we need. */
16 result->m = (struct link_map *) map;