summaryrefslogtreecommitdiffstats
path: root/meta/packages/glibc/glibc-2.4/glibc-include-fixed.patch
blob: a8e87609f2349c07d990a9e5db5be5fa399fd0b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
With the -nostdinc that we get --with-headers, we need to pull in GCC
4.3's include-fixed subdir too, because that's what contains limits.h
and syslimits.h now.


for  ChangeLog
2008-01-30  Alexandre Oliva  <aoliva@redhat.com>

	* configure.in (SYSINCLUDES): Add GCC's include-fixed after include.
	* configure: Rebuilt.
	
Index: configure
===================================================================
--- configure.orig	2008-01-30 15:40:55.000000000 -0200
+++ configure	2008-01-31 03:24:36.000000000 -0200
@@ -5066,7 +5066,12 @@ echo "$as_me: WARNING:
 # thing on a system that doesn't need fixincludes.  (Not presently a problem.)
 if test -n "$sysheaders"; then
   ccheaders=`$CC -print-file-name=include`
-  SYSINCLUDES="-nostdinc -isystem $ccheaders \
+  if test -d "${ccheaders}-fixed"; then
+    fixedccheaders="-isystem ${ccheaders}-fixed"
+  else
+    fixedccheaders=
+  fi
+  SYSINCLUDES="-nostdinc -isystem $ccheaders $fixedccheaders \
 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
   if test -n "$CXX"; then
     cxxversion=`$CXX -dumpversion 2>&5` &&
Index: configure.in
===================================================================
--- configure.in.orig	2008-01-30 15:40:55.000000000 -0200
+++ configure.in	2008-01-31 03:24:30.000000000 -0200
@@ -915,7 +915,12 @@ test -n "$aux_missing" && AC_MSG_WARN([
 # thing on a system that doesn't need fixincludes.  (Not presently a problem.)
 if test -n "$sysheaders"; then
   ccheaders=`$CC -print-file-name=include`
-  SYSINCLUDES="-nostdinc -isystem $ccheaders \
+  if test -d "${ccheaders}-fixed"; then
+    fixedccheaders="-isystem ${ccheaders}-fixed"
+  else
+    fixedccheaders=
+  fi
+  SYSINCLUDES="-nostdinc -isystem $ccheaders $fixedccheaders \
 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
   if test -n "$CXX"; then
     cxxversion=`$CXX -dumpversion 2>&AS_MESSAGE_LOG_FD` &&

-- 
Alexandre Oliva         http://www.lsd.ic.unicamp.br/~oliva/
FSF Latin America Board Member         http://www.fsfla.org/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}