yann@1004: GCC trunk now has multiple internal headers directories, one yann@1004: containing the self-contained GCC-provided headers and one containing yann@1004: the (not self-contained but including libc's or yann@1004: a fixed version thereof) and the fixed headers; more such directories yann@1004: may be added in future. yann@1004: yann@1004: When glibc uses -nostdinc, it needs to use -isystem options for all yann@1004: these internal directories. This patch teaches it about the yann@1004: include-fixed directory (and is harmless with old GCC versions without yann@1004: that directory). yann@1004: yann@1004: 2007-03-18 Joseph Myers yann@1004: yann@1004: * configure.in: Also pass -isystem option for GCC's include-fixed yann@1004: directory. yann@1004: * configure: Regenerate. yann@1004: yann@1004: yann@1004: --- glibc-2.3.6.ori/configure.in 2008-10-22 14:55:58.000000000 +0200 yann@1004: +++ glibc-2.3.6/configure.in 2008-10-22 14:56:15.000000000 +0200 yann@1004: @@ -804,7 +804,7 @@ yann@1004: # thing on a system that doesn't need fixincludes. (Not presently a problem.) yann@1004: if test -n "$sysheaders"; then yann@1004: ccheaders=`$CC -print-file-name=include` yann@1004: - SYSINCLUDES="-nostdinc -isystem $ccheaders \ yann@1004: + SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $ccheaders-fixed \ yann@1004: -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`" yann@1004: fi yann@1004: AC_SUBST(SYSINCLUDES) yann@1004: --- glibc-2.3.6.ori/configure 2008-10-22 15:11:37.000000000 +0200 yann@1004: +++ glibc-2.3.6/configure 2008-10-22 15:11:54.000000000 +0200 yann@1004: @@ -4438,7 +4438,7 @@ yann@1004: # thing on a system that doesn't need fixincludes. (Not presently a problem.) yann@1004: if test -n "$sysheaders"; then yann@1004: ccheaders=`$CC -print-file-name=include` yann@1004: - SYSINCLUDES="-nostdinc -isystem $ccheaders \ yann@1004: + SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $ccheaders-fixed \ yann@1004: -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`" yann@1004: fi yann@1004: