source: patches/glibc-2.7-include_fixed-1.patch@ fca040b

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since fca040b was 6a043e2, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Upgrade to GCC 4.3.1.

  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[6a043e2]1Submitted By: Joe Ciccone <jciccone@gmail.com>
2Date: 2008-08-24
3Initial Package Version: 2.7
4Upstream Status: Unknown
5Origin: Joe Ciccone
6Description: Glibc needs to look in GCC include-fixed dir for headers.
7
8diff -Naur glibc-2.7.orig/configure.in glibc-2.7/configure.in
9--- glibc-2.7.orig/configure.in 2007-06-07 23:16:36.000000000 -0400
10+++ glibc-2.7/configure.in 2008-08-26 20:16:35.000000000 -0400
11@@ -912,7 +912,13 @@
12 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
13 if test -n "$sysheaders"; then
14 ccheaders=`$CC -print-file-name=include`
15- SYSINCLUDES="-nostdinc -isystem $ccheaders \
16+ ccheaders_fixed=`$CC -print-file-name=include-fixed`
17+ if test "$ccheaders_fixed" = "include-fixed"; then
18+ ccheaders_fixed=""
19+ else
20+ ccheaders_fixed="-isystem $ccheaders_fixed"
21+ fi
22+ SYSINCLUDES="-nostdinc -isystem $ccheaders $ccheaders_fixed \
23 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
24 if test -n "$CXX"; then
25 cxxversion=`$CXX -dumpversion 2>&AS_MESSAGE_LOG_FD` &&
26diff -Naur glibc-2.7.orig/configure glibc-2.7/configure
27--- glibc-2.7.orig/configure 2007-10-18 07:22:23.000000000 -0400
28+++ glibc-2.7/configure 2008-08-26 20:16:41.000000000 -0400
29@@ -5063,7 +5063,13 @@
30 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
31 if test -n "$sysheaders"; then
32 ccheaders=`$CC -print-file-name=include`
33- SYSINCLUDES="-nostdinc -isystem $ccheaders \
34+ ccheaders_fixed=`$CC -print-file-name=include-fixed`
35+ if test "$ccheaders_fixed" = "include-fixed"; then
36+ ccheaders_fixed=""
37+ else
38+ ccheaders_fixed="-isystem $ccheaders_fixed"
39+ fi
40+ SYSINCLUDES="-nostdinc -isystem $ccheaders $ccheaders_fixed \
41 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
42 if test -n "$CXX"; then
43 cxxversion=`$CXX -dumpversion 2>&5` &&
Note: See TracBrowser for help on using the repository browser.