Allow user to add a directory component in the sys-root path.
Rename CT_DEBUG_INSTALL_DIR to CT_DEBUGROOT_DIR (to match CT_SYSROOT_DIR).
As a side effect, fix creating lib64->lib symlinks.
/trunk/scripts/build/debug/100-dmalloc.sh | 2 1 1 0 +-
/trunk/scripts/build/debug/400-ltrace.sh | 2 1 1 0 +-
/trunk/scripts/build/debug/300-gdb.sh | 6 3 3 0 +++---
/trunk/scripts/build/debug/500-strace.sh | 2 1 1 0 +-
/trunk/scripts/build/debug/200-duma.sh | 6 3 3 0 +++---
/trunk/scripts/crosstool-NG.sh.in | 16 7 9 0 +++++++---------
/trunk/scripts/functions | 2 1 1 0 +-
/trunk/config/toolchain.in | 17 17 0 0 +++++++++++++++++
8 files changed, 34 insertions(+), 19 deletions(-)
1 Original patch from: gentoo/src/patchsets/glibc/2.9/0030_all_glibc-respect-env-CPPFLAGS.patch
3 -= BEGIN original header =-
4 Respect environment CPPFLAGS when we run ./configure so we can inject
5 random -D things without having to set CFLAGS/ASFLAGS
7 -= END original header =-
9 diff -durN glibc-2_9.orig/Makeconfig glibc-2_9/Makeconfig
10 --- glibc-2_9.orig/Makeconfig 2008-08-18 11:42:17.000000000 +0200
11 +++ glibc-2_9/Makeconfig 2009-02-02 22:00:35.000000000 +0100
13 $(foreach lib,$(libof-$(basename $(@F))) \
14 $(libof-$(<F)) $(libof-$(@F)),$(CPPFLAGS-$(lib))) \
15 $(CPPFLAGS-$(<F)) $(CPPFLAGS-$(@F)) $(CPPFLAGS-$(basename $(@F)))
16 +CPPFLAGS += $(CPPFLAGS-config)
17 override CFLAGS = -std=gnu99 $(gnu89-inline-CFLAGS) \
18 $(filter-out %frame-pointer,$(+cflags)) $(+gccwarn-c) \
19 $(sysdep-CFLAGS) $(CFLAGS-$(suffix $@)) $(CFLAGS-$(<F)) \
20 diff -durN glibc-2_9.orig/config.make.in glibc-2_9/config.make.in
21 --- glibc-2_9.orig/config.make.in 2008-08-18 11:42:17.000000000 +0200
22 +++ glibc-2_9/config.make.in 2009-02-02 22:00:35.000000000 +0100
27 +CPPFLAGS-config = @CPPFLAGS@
28 ASFLAGS-config = @ASFLAGS_config@