debb76136befdd7d090642289cc11fa040100b1a
[openwrt.git] / toolchain / gcc / patches / 4.2.4 / 100-uclibc-conf.patch
1 Index: gcc-4.2.3/libgomp/configure
2 ===================================================================
3 --- gcc-4.2.3.orig/libgomp/configure    2008-02-01 18:06:50.000000000 +0100
4 +++ gcc-4.2.3/libgomp/configure 2008-05-21 13:45:41.641289283 +0200
5 @@ -3893,7 +3893,7 @@
6    ;;
7  
8  # This must be Linux ELF.
9 -linux-gnu*)
10 +linux*)
11    lt_cv_deplibs_check_method=pass_all
12    ;;
13  
14 Index: gcc-4.2.3/gcc/config/cris/linux.h
15 ===================================================================
16 --- gcc-4.2.3.orig/gcc/config/cris/linux.h      2007-09-01 17:28:30.000000000 +0200
17 +++ gcc-4.2.3/gcc/config/cris/linux.h   2008-05-21 13:45:41.641289283 +0200
18 @@ -73,7 +73,11 @@
19  #define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
20  
21  #undef CRIS_SUBTARGET_VERSION
22 -#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
23 +#if UCLIBC_DEFAULT
24 +# define CRIS_SUBTARGET_VERSION " - cris-axis-linux-uclibc"
25 +#else
26 +# define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
27 +#endif
28  
29  #define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
30  
31 Index: gcc-4.2.3/libstdc++-v3/configure
32 ===================================================================
33 --- gcc-4.2.3.orig/libstdc++-v3/configure       2007-06-29 01:02:05.000000000 +0200
34 +++ gcc-4.2.3/libstdc++-v3/configure    2008-05-21 13:45:41.725287971 +0200
35 @@ -4283,7 +4283,7 @@
36    ;;
37  
38  # This must be Linux ELF.
39 -linux-gnu*)
40 +linux*)
41    lt_cv_deplibs_check_method=pass_all
42    ;;
43  
44 Index: gcc-4.2.3/zlib/configure
45 ===================================================================
46 --- gcc-4.2.3.orig/zlib/configure       2007-01-17 19:10:26.000000000 +0100
47 +++ gcc-4.2.3/zlib/configure    2008-05-21 13:45:41.753288186 +0200
48 @@ -3429,7 +3429,7 @@
49    ;;
50  
51  # This must be Linux ELF.
52 -linux-gnu*)
53 +linux*)
54    lt_cv_deplibs_check_method=pass_all
55    ;;
56  
57 Index: gcc-4.2.3/libobjc/configure
58 ===================================================================
59 --- gcc-4.2.3.orig/libobjc/configure    2006-10-15 09:42:57.000000000 +0200
60 +++ gcc-4.2.3/libobjc/configure 2008-05-21 13:45:41.773288499 +0200
61 @@ -3314,7 +3314,7 @@
62    ;;
63  
64  # This must be Linux ELF.
65 -linux-gnu*)
66 +linux*)
67    lt_cv_deplibs_check_method=pass_all
68    ;;
69  
70 Index: gcc-4.2.3/libgfortran/configure
71 ===================================================================
72 --- gcc-4.2.3.orig/libgfortran/configure        2008-02-01 18:06:49.000000000 +0100
73 +++ gcc-4.2.3/libgfortran/configure     2008-05-21 13:45:41.789288861 +0200
74 @@ -3721,7 +3721,7 @@
75    ;;
76  
77  # This must be Linux ELF.
78 -linux-gnu*)
79 +linux*)
80    lt_cv_deplibs_check_method=pass_all
81    ;;
82  
83 Index: gcc-4.2.3/libmudflap/configure
84 ===================================================================
85 --- gcc-4.2.3.orig/libmudflap/configure 2006-12-04 12:13:07.000000000 +0100
86 +++ gcc-4.2.3/libmudflap/configure      2008-05-21 13:45:41.809288615 +0200
87 @@ -5394,7 +5394,7 @@
88    ;;
89  
90  # This must be Linux ELF.
91 -linux-gnu*)
92 +linux*)
93    lt_cv_deplibs_check_method=pass_all
94    ;;
95  
96 Index: gcc-4.2.3/boehm-gc/configure
97 ===================================================================
98 --- gcc-4.2.3.orig/boehm-gc/configure   2008-02-01 18:06:49.000000000 +0100
99 +++ gcc-4.2.3/boehm-gc/configure        2008-05-21 13:45:41.833288320 +0200
100 @@ -4323,7 +4323,7 @@
101    ;;
102  
103  # This must be Linux ELF.
104 -linux-gnu*)
105 +linux*)
106    lt_cv_deplibs_check_method=pass_all
107    ;;
108  
109 Index: gcc-4.2.3/libffi/configure
110 ===================================================================
111 --- gcc-4.2.3.orig/libffi/configure     2008-02-01 18:06:49.000000000 +0100
112 +++ gcc-4.2.3/libffi/configure  2008-05-21 13:45:41.869288157 +0200
113 @@ -3460,7 +3460,7 @@
114    ;;
115  
116  # This must be Linux ELF.
117 -linux-gnu*)
118 +linux*)
119    lt_cv_deplibs_check_method=pass_all
120    ;;
121  
122 Index: gcc-4.2.3/libssp/configure
123 ===================================================================
124 --- gcc-4.2.3.orig/libssp/configure     2006-10-15 09:42:57.000000000 +0200
125 +++ gcc-4.2.3/libssp/configure  2008-05-21 13:45:41.897286416 +0200
126 @@ -4480,7 +4480,7 @@
127    ;;
128  
129  # This must be Linux ELF.
130 -linux-gnu*)
131 +linux*)
132    lt_cv_deplibs_check_method=pass_all
133    ;;
134  
135 Index: gcc-4.2.3/contrib/regression/objs-gcc.sh
136 ===================================================================
137 --- gcc-4.2.3.orig/contrib/regression/objs-gcc.sh       2005-08-15 02:41:31.000000000 +0200
138 +++ gcc-4.2.3/contrib/regression/objs-gcc.sh    2008-05-21 13:45:41.897286416 +0200
139 @@ -105,6 +105,10 @@
140   then
141    make all-gdb all-dejagnu all-ld || exit 1
142    make install-gdb install-dejagnu install-ld || exit 1
143 +elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ]
144 + then
145 +  make all-gdb all-dejagnu all-ld || exit 1
146 +  make install-gdb install-dejagnu install-ld || exit 1
147  elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then
148    make bootstrap || exit 1
149    make install || exit 1
150 Index: gcc-4.2.3/libjava/classpath/ltconfig
151 ===================================================================
152 --- gcc-4.2.3.orig/libjava/classpath/ltconfig   2006-08-07 22:37:50.000000000 +0200
153 +++ gcc-4.2.3/libjava/classpath/ltconfig        2008-05-21 13:45:41.897286416 +0200
154 @@ -603,7 +603,7 @@
155  
156  # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
157  case $host_os in
158 -linux-gnu*) ;;
159 +linux-gnu*|linux-uclibc*) ;;
160  linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
161  esac
162  
163 @@ -1251,7 +1251,7 @@
164    ;;
165  
166  # This must be Linux ELF.
167 -linux-gnu*)
168 +linux*)
169    version_type=linux
170    need_lib_prefix=no
171    need_version=no
172 Index: gcc-4.2.3/libjava/classpath/configure
173 ===================================================================
174 --- gcc-4.2.3.orig/libjava/classpath/configure  2007-01-17 19:10:26.000000000 +0100
175 +++ gcc-4.2.3/libjava/classpath/configure       2008-05-21 13:45:41.921288635 +0200
176 @@ -5307,7 +5307,7 @@
177    ;;
178  
179  # This must be Linux ELF.
180 -linux-gnu*)
181 +linux*)
182    lt_cv_deplibs_check_method=pass_all
183    ;;
184  
185 Index: gcc-4.2.3/libjava/configure
186 ===================================================================
187 --- gcc-4.2.3.orig/libjava/configure    2008-02-01 18:06:50.000000000 +0100
188 +++ gcc-4.2.3/libjava/configure 2008-05-21 13:45:41.933288487 +0200
189 @@ -5424,7 +5424,7 @@
190    ;;
191  
192  # This must be Linux ELF.
193 -linux-gnu*)
194 +linux*)
195    lt_cv_deplibs_check_method=pass_all
196    ;;
197  
198 Index: gcc-4.2.3/libtool.m4
199 ===================================================================
200 --- gcc-4.2.3.orig/libtool.m4   2005-07-16 04:30:53.000000000 +0200
201 +++ gcc-4.2.3/libtool.m4        2008-05-21 13:45:41.949288291 +0200
202 @@ -739,7 +739,7 @@
203    ;;
204  
205  # This must be Linux ELF.
206 -linux-gnu*)
207 +linux*)
208    lt_cv_deplibs_check_method=pass_all
209    ;;
210  
211 Index: gcc-4.2.3/ltconfig
212 ===================================================================
213 --- gcc-4.2.3.orig/ltconfig     2007-02-14 18:08:35.000000000 +0100
214 +++ gcc-4.2.3/ltconfig  2008-05-21 13:45:41.961288143 +0200
215 @@ -603,7 +603,7 @@
216  
217  # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
218  case $host_os in
219 -linux-gnu*) ;;
220 +linux-gnu*|linux-uclibc*) ;;
221  linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
222  esac
223  
224 @@ -1251,7 +1251,7 @@
225    ;;
226  
227  # This must be Linux ELF.
228 -linux-gnu*)
229 +linux*)
230    version_type=linux
231    need_lib_prefix=no
232    need_version=no