patches/glibc/2.3.6/290-gcc-4.3-include.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Mar 03 17:41:59 2009 +0000 (2009-03-03)
changeset 1219 2b875ed306c2
permissions -rw-r--r--
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 GCC trunk now has multiple internal headers directories, one
     2 containing the self-contained GCC-provided headers and one containing
     3 the <limits.h> (not self-contained but including libc's <limits.h> or
     4 a fixed version thereof) and the fixed headers; more such directories
     5 may be added in future.
     6 
     7 When glibc uses -nostdinc, it needs to use -isystem options for all
     8 these internal directories.  This patch teaches it about the
     9 include-fixed directory (and is harmless with old GCC versions without
    10 that directory).
    11 
    12 2007-03-18  Joseph Myers  <joseph@codesourcery.com>
    13 
    14 	* configure.in: Also pass -isystem option for GCC's include-fixed
    15 	directory.
    16 	* configure: Regenerate.
    17 
    18 
    19 --- glibc-2.3.6.ori/configure.in	2008-10-22 14:55:58.000000000 +0200
    20 +++ glibc-2.3.6/configure.in	2008-10-22 14:56:15.000000000 +0200
    21 @@ -804,7 +804,7 @@
    22  # thing on a system that doesn't need fixincludes.  (Not presently a problem.)
    23  if test -n "$sysheaders"; then
    24    ccheaders=`$CC -print-file-name=include`
    25 -  SYSINCLUDES="-nostdinc -isystem $ccheaders \
    26 +  SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $ccheaders-fixed \
    27  -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
    28  fi
    29  AC_SUBST(SYSINCLUDES)
    30 --- glibc-2.3.6.ori/configure	2008-10-22 15:11:37.000000000 +0200
    31 +++ glibc-2.3.6/configure	2008-10-22 15:11:54.000000000 +0200
    32 @@ -4438,7 +4438,7 @@
    33  # thing on a system that doesn't need fixincludes.  (Not presently a problem.)
    34  if test -n "$sysheaders"; then
    35    ccheaders=`$CC -print-file-name=include`
    36 -  SYSINCLUDES="-nostdinc -isystem $ccheaders \
    37 +  SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $ccheaders-fixed \
    38  -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
    39  fi
    40