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.7.orig/Makerules glibc-2.7/Makerules
2 --- glibc-2.7.orig/Makerules 2007-08-26 04:18:03.000000000 +0200
3 +++ glibc-2.7/Makerules 2008-07-28 15:17:27.000000000 +0200
5 # The include magic above causes those files to use this variable for flags.
6 CPPFLAGS-nonlib = -DNOT_IN_libc=1
8 +ifneq ($(OBJDUMP_FOR_HOST),)
9 +OBJDUMP = $(OBJDUMP_FOR_HOST)
12 ifeq ($(versioning),yes)
13 # Generate normalized lists of symbols, versions, and data sizes.