summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc/gcc-4.0.2/zecke-host-cpp-ac-hack.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gcc/gcc-4.0.2/zecke-host-cpp-ac-hack.patch')
-rw-r--r--meta/packages/gcc/gcc-4.0.2/zecke-host-cpp-ac-hack.patch140
1 files changed, 140 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-4.0.2/zecke-host-cpp-ac-hack.patch b/meta/packages/gcc/gcc-4.0.2/zecke-host-cpp-ac-hack.patch
new file mode 100644
index 0000000000..3f26dce71f
--- /dev/null
+++ b/meta/packages/gcc/gcc-4.0.2/zecke-host-cpp-ac-hack.patch
@@ -0,0 +1,140 @@
1gcc (AC_CHECK_HEADERS) is using $CPP to check if the header pass
2the precompiler, if compiling with $CC failed.
3Sadly $CC is xgcc of gcc, and $CPP is 'gcc -E'. And as you build
4on a glibc machine, precompiling of the headers (execinfo.h and
5iconv.h will succeed). As a dirty hack we will handle this case
6as failure.
7This fixes the libmudflap build for uclibc which lacks execinfo.h
8but has HAVE_EXECINFO_H defined
9
10Index: gcc-4.0.2/libmudflap/configure
11===================================================================
12--- gcc-4.0.2.orig/libmudflap/configure 2006-04-30 16:57:47.000000000 +0200
13+++ gcc-4.0.2/libmudflap/configure 2006-04-30 17:00:59.000000000 +0200
14@@ -3719,6 +3719,8 @@
15 ac_header_preproc=yes
16 ;;
17 no:yes:* )
18+ # hack, hack, hack
19+ ac_header_preproc=no
20 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23@@ -3731,6 +3733,8 @@
24 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27+ { echo "$as_me:$LINENO: WARNING: $ac_header: Zecke says do not trust the wrong cpp! Ignoring." >&5
28+echo "$as_me: WARNING: $ac_header: Zecke says do not trust the wrong cpp! Ignoring." >&2;}
29 (
30 cat <<\_ASBOX
31 ## ------------------------------------- ##
32Index: gcc-4.0.2/libstdc++-v3/configure
33===================================================================
34--- gcc-4.0.2.orig/libstdc++-v3/configure 2006-04-30 16:57:53.000000000 +0200
35+++ gcc-4.0.2/libstdc++-v3/configure 2006-04-30 22:59:00.000000000 +0200
36@@ -30513,6 +30513,7 @@
37 ac_header_preproc=yes
38 ;;
39 no:yes:* )
40+ ac_header_preproc=no
41 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
42 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
43 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
44@@ -30525,6 +30526,8 @@
45 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
46 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
47 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
48+ { echo "$as_me:$LINENO: WARNING: $ac_header: Zecke says do not trust the wrong cpp! Ignoring." >&5
49+echo "$as_me: WARNING: $ac_header: Zecke says do not trust the wrong cpp! Ignoring." >&2;}
50 (
51 cat <<\_ASBOX
52 ## ----------------------------------------- ##
53@@ -53622,6 +53625,7 @@
54 ac_header_preproc=yes
55 ;;
56 no:yes:* )
57+ ac_header_preproc=no
58 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
59 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
60 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
61@@ -75885,6 +75889,7 @@
62 ac_header_preproc=yes
63 ;;
64 no:yes:* )
65+ ac_header_preproc=no
66 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
67 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
68 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
69@@ -78600,6 +78605,7 @@
70 ac_header_preproc=yes
71 ;;
72 no:yes:* )
73+ ac_header_preproc=no
74 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
75 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
76 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
77@@ -80969,6 +80975,7 @@
78 ac_header_preproc=yes
79 ;;
80 no:yes:* )
81+ ac_header_preproc=no
82 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
83 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
84 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
85@@ -83214,6 +83221,7 @@
86 ac_header_preproc=yes
87 ;;
88 no:yes:* )
89+ ac_header_preproc=no
90 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
91 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
92 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
93@@ -86227,6 +86235,7 @@
94 ac_header_preproc=yes
95 ;;
96 no:yes:* )
97+ ac_header_preproc=no
98 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
99 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
100 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
101@@ -88425,6 +88434,7 @@
102 ac_header_preproc=yes
103 ;;
104 no:yes:* )
105+ ac_header_preproc=no
106 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
107 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
108 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
109@@ -90672,6 +90682,7 @@
110 ac_header_preproc=yes
111 ;;
112 no:yes:* )
113+ ac_header_preproc=no
114 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
115 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
116 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
117@@ -93280,6 +93291,7 @@
118 ac_header_preproc=yes
119 ;;
120 no:yes:* )
121+ ac_header_preproc=no
122 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
123 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
124 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
125@@ -94996,6 +95008,7 @@
126 ac_header_preproc=yes
127 ;;
128 no:yes:* )
129+ ac_header_preproc=no
130 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
131 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
132 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
133@@ -97337,6 +97350,7 @@
134 ac_header_preproc=yes
135 ;;
136 no:yes:* )
137+ ac_header_preproc=no
138 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
139 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
140 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5