]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/binutils/binutils-2.14.90.0.7/binutils-2.15.90.0.3-uclibc-100-conf.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / binutils / binutils-2.14.90.0.7 / binutils-2.15.90.0.3-uclibc-100-conf.patch
1 --- binutils-2.15.90.0.3/bfd/config.bfd.conf    2004-04-12 15:56:33.000000000 -0400
2 +++ binutils-2.15.90.0.3/bfd/config.bfd 2004-04-22 21:58:37.000000000 -0400
3 @@ -126,7 +126,7 @@
4      targ_defvec=ecoffalpha_little_vec
5      targ_selvecs=bfd_elf64_alpha_vec
6      ;;
7 -  alpha*-*-linux-gnu* | alpha*-*-elf*)
8 +  alpha*-*-linux-gnu* | alpha*-*-linux-uclibc* | alpha*-*-elf*)
9      targ_defvec=bfd_elf64_alpha_vec
10      targ_selvecs=ecoffalpha_little_vec
11      ;;
12 @@ -136,7 +136,7 @@
13    alpha*-*-*)
14      targ_defvec=ecoffalpha_little_vec
15      ;;
16 -  ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-gnu* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu)
17 +  ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-gnu* | ia64*-*-elf* | ia64*-*-linux-uclibc* | ia64*-*-kfreebsd*-gnu)
18      targ_defvec=bfd_elf64_ia64_little_vec
19      targ_selvecs="bfd_elf64_ia64_big_vec bfd_efi_app_ia64_vec"
20      ;;
21 @@ -213,7 +213,7 @@
22      targ_defvec=bfd_elf32_littlearm_vec
23      targ_selvecs=bfd_elf32_bigarm_vec
24      ;;
25 -  armeb-*-elf | arm*b-*-linux-gnu*)
26 +  armeb-*-elf | arm*b-*-linux-gnu* | arm*b-*-linux-uclibc*)
27      targ_defvec=bfd_elf32_bigarm_vec
28      targ_selvecs=bfd_elf32_littlearm_vec
29      ;;
30 @@ -221,8 +221,8 @@
31      targ_defvec=bfd_elf32_littlearm_vec
32      targ_selvecs=bfd_elf32_bigarm_vec
33      ;;
34 -  arm-*-elf | arm-*-freebsd* | arm*-*-linux-gnu* | arm*-*-conix* | \
35 -  arm*-*-uclinux* | arm-*-kfreebsd*-gnu | arm-*-vxworks)
36 +  arm-*-elf | arm-*-freebsd* | arm*-*-linux-gnu* | arm*-*-linux-uclibc* | \
37 +  arm*-*-conix* | arm*-*-uclinux* | arm-*-kfreebsd*-gnu | arm-*-vxworks)
38      targ_defvec=bfd_elf32_littlearm_vec
39      targ_selvecs=bfd_elf32_bigarm_vec
40      ;;
41 @@ -360,7 +360,7 @@
42      ;;
43  
44  #ifdef BFD64
45 -  hppa*64*-*-linux-gnu*)
46 +  hppa*64*-*-linux-gnu* | hppa*64*-*-linux-uclibc*)
47      targ_defvec=bfd_elf64_hppa_linux_vec
48      targ_selvecs=bfd_elf64_hppa_vec
49      ;;
50 @@ -371,7 +371,7 @@
51      ;;
52  #endif
53  
54 -  hppa*-*-linux-gnu* | hppa*-*-netbsd*)
55 +  hppa*-*-linux-gnu* | hppa*-*-netbsd* | hppa*-*-linux-uclibc*)
56      targ_defvec=bfd_elf32_hppa_linux_vec
57      targ_selvecs=bfd_elf32_hppa_vec
58      ;;
59 @@ -494,7 +494,7 @@
60      targ_selvecs=bfd_elf32_i386_vec
61      targ_underscore=yes
62      ;;
63 -  i[3-7]86-*-linux-gnu*)
64 +  i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*)
65      targ_defvec=bfd_elf32_i386_vec
66      targ_selvecs="i386linux_vec bfd_efi_app_ia32_vec"
67      targ64_selvecs=bfd_elf64_x86_64_vec
68 @@ -508,7 +508,7 @@
69      targ_defvec=bfd_elf64_x86_64_vec
70      targ_selvecs="bfd_elf32_i386_vec i386netbsd_vec i386coff_vec bfd_efi_app_ia32_vec"
71      ;;
72 -  x86_64-*-linux-gnu*)
73 +  x86_64-*-linux-gnu* | x86_64-*-linux-uclibc*)
74      targ_defvec=bfd_elf64_x86_64_vec
75      targ_selvecs="bfd_elf32_i386_vec i386linux_vec bfd_efi_app_ia32_vec"
76      ;;
77 @@ -683,7 +683,7 @@
78      targ_selvecs=bfd_elf32_m68k_vec
79      targ_underscore=yes
80      ;;
81 -  m68*-*-linux-gnu*)
82 +  m68*-*-linux-gnu* | m68*-*-linux-uclibc*)
83      targ_defvec=bfd_elf32_m68k_vec
84      targ_selvecs=m68klinux_vec
85      ;;
86 @@ -955,7 +955,8 @@
87      ;;
88  #endif
89    powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
90 -  powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-rtems* | \
91 +  powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-linux-uclibc* | \
92 +  powerpc-*-rtems* | \
93    powerpc-*-chorus* | powerpc-*-vxworks* | powerpc-*-windiss*)
94      targ_defvec=bfd_elf32_powerpc_vec
95      targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec"
96 @@ -987,8 +988,8 @@
97      targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
98      ;;
99    powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
100 -  powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-vxworks* |\
101 -  powerpcle-*-rtems*)
102 +  powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-linux-uclibc* |\
103 +  powerpcle-*-vxworks* | powerpcle-*-rtems*)
104      targ_defvec=bfd_elf32_powerpcle_vec
105      targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
106      targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec"
107 @@ -1149,7 +1150,7 @@
108      targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
109      targ_underscore=yes
110      ;;
111 -  sparc-*-linux-gnu*)
112 +  sparc-*-linux-gnu* | sparc-*-linux-uclibc*)
113      targ_defvec=bfd_elf32_sparc_vec
114      targ_selvecs="sparclinux_vec bfd_elf64_sparc_vec sunos_big_vec"
115      ;;
116 @@ -1196,7 +1197,7 @@
117      targ_defvec=sunos_big_vec
118      targ_underscore=yes
119      ;;
120 -  sparc64-*-linux-gnu*)
121 +  sparc64-*-linux-gnu* | sparc64-*-linux-uclibc*)
122      targ_defvec=bfd_elf64_sparc_vec
123      targ_selvecs="bfd_elf32_sparc_vec sparclinux_vec sunos_big_vec"
124      ;;
125 --- binutils-2.15.90.0.3/bfd/configure.conf     2004-04-15 00:26:05.000000000 -0400
126 +++ binutils-2.15.90.0.3/bfd/configure  2004-04-22 21:58:37.000000000 -0400
127 @@ -1699,6 +1699,11 @@
128    lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
129    ;;
130  
131 +linux-uclibc*)
132 +  lt_cv_deplibs_check_method=pass_all
133 +  lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
134 +  ;;
135 +
136  netbsd*)
137    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
138      lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
139 @@ -5278,7 +5283,7 @@
140    alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
141         COREFILE=''
142         ;;
143 -  alpha*-*-linux-gnu*)
144 +  alpha*-*-linux-gnu* | alpha*-*-linux-uclibc*)
145         COREFILE=trad-core.lo
146         TRAD_HEADER='"hosts/alphalinux.h"'
147         ;;
148 @@ -5338,7 +5343,7 @@
149         COREFILE=trad-core.lo
150         TRAD_HEADER='"hosts/i386mach3.h"'
151         ;;
152 -  i[3-7]86-*-linux-gnu*)
153 +  i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*)
154         COREFILE=trad-core.lo
155         TRAD_HEADER='"hosts/i386linux.h"'
156         ;;
157 @@ -5376,7 +5381,7 @@
158         COREFILE=trad-core.lo
159         TRAD_HEADER='"hosts/hp300bsd.h"'
160         ;;
161 -  m68*-*-linux-gnu*)
162 +  m68*-*-linux-gnu* | m68*-*-linux-uclibc*)
163         COREFILE=trad-core.lo
164         TRAD_HEADER='"hosts/m68klinux.h"'
165         ;;
166 --- binutils-2.15.90.0.3/bfd/configure.in.conf  2004-04-15 00:26:05.000000000 -0400
167 +++ binutils-2.15.90.0.3/bfd/configure.in       2004-04-22 21:58:37.000000000 -0400
168 @@ -178,7 +178,7 @@
169    alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
170         COREFILE=''
171         ;;
172 -  alpha*-*-linux-gnu*)
173 +  alpha*-*-linux-gnu* | alpha*-*-linux-uclibc*)
174         COREFILE=trad-core.lo
175         TRAD_HEADER='"hosts/alphalinux.h"'
176         ;;
177 @@ -259,7 +259,7 @@
178         TRAD_HEADER='"hosts/i386mach3.h"'
179         ;;
180  changequote(,)dnl
181 -  i[3-7]86-*-linux-gnu*)
182 +  i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*)
183  changequote([,])dnl
184         COREFILE=trad-core.lo
185         TRAD_HEADER='"hosts/i386linux.h"'
186 @@ -300,7 +300,7 @@
187         COREFILE=trad-core.lo
188         TRAD_HEADER='"hosts/hp300bsd.h"'
189         ;;
190 -  m68*-*-linux-gnu*)
191 +  m68*-*-linux-gnu* | m68*-*-linux-uclibc*)
192         COREFILE=trad-core.lo
193         TRAD_HEADER='"hosts/m68klinux.h"'
194         ;;
195 --- binutils-2.15.90.0.3/gas/configure.conf     2004-04-12 15:56:34.000000000 -0400
196 +++ binutils-2.15.90.0.3/gas/configure  2004-04-22 22:00:28.000000000 -0400
197 @@ -3401,6 +3401,11 @@
198    lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
199    ;;
200  
201 +linux-uclibc*)
202 +  lt_cv_deplibs_check_method=pass_all
203 +  lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
204 +  ;;
205 +
206  netbsd*)
207    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
208      lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
209 @@ -4226,6 +4231,7 @@
210        alpha*-*-osf*)                   fmt=ecoff ;;
211        alpha*-*-linuxecoff*)            fmt=ecoff ;;
212        alpha*-*-linux-gnu*)             fmt=elf em=linux ;;
213 +      alpha*-*-linux-uclibc*)          fmt=elf em=linux ;;
214        alpha*-*-netbsd*)                        fmt=elf em=nbsd ;;
215        alpha*-*-openbsd*)               fmt=elf em=obsd ;;
216  
217 @@ -4242,6 +4248,7 @@
218        arm*-*-conix*)                   fmt=elf ;;
219        arm-*-linux*aout*)               fmt=aout em=linux ;;
220        arm*-*-linux-gnu*)               fmt=elf  em=linux ;;
221 +      arm*-*-linux-uclibc*)            fmt=elf  em=linux ;;
222        arm*-*-uclinux*)                 fmt=elf  em=linux ;;
223        arm-*-netbsdelf*)                 fmt=elf  em=nbsd ;;
224        arm-*-*n*bsd*)                   fmt=aout em=nbsd ;;
225 @@ -4255,6 +4262,7 @@
226        avr-*-*)                         fmt=elf ;;
227  
228        cris-*-linux-gnu*)               fmt=multi bfd_gas=yes em=linux ;;
229 +      cris-*-linux-uclibc*)            fmt=multi bfd_gas=yes em=linux ;;
230        cris-*-*)                                fmt=multi bfd_gas=yes ;;
231  
232        d10v-*-*)                                fmt=elf ;;
233 @@ -4311,7 +4319,9 @@
234        i386-*-linux*oldld)              fmt=aout em=linux ;;
235        i386-*-linux*coff*)              fmt=coff em=linux ;;
236        i386-*-linux-gnu*)               fmt=elf em=linux ;;
237 +      i386-*-linux-uclibc*)            fmt=elf em=linux ;;
238        x86_64-*-linux-gnu*)             fmt=elf em=linux ;;
239 +      x86_64-*-linux-uclibc*)          fmt=elf em=linux ;;
240        i386-*-lynxos*)                  fmt=coff em=lynx ;;
241        i386-*-sysv[45]*)                        fmt=elf ;;
242        i386-*-solaris*)                 fmt=elf ;;
243 @@ -4371,6 +4381,7 @@
244        ia64-*-elf*)                     fmt=elf ;;
245        ia64-*-aix*)                     fmt=elf em=ia64aix ;;
246        ia64-*-linux-gnu*)               fmt=elf em=linux ;;
247 +      ia64-*-linux-uclibc*)            fmt=elf em=linux ;;
248        ia64-*-hpux*)                    fmt=elf em=hpux ;;
249        ia64-*-netbsd*)                  fmt=elf em=nbsd ;;
250  
251 @@ -4398,6 +4409,7 @@
252        m68k-*-hpux*)                    fmt=hp300 em=hp300 ;;
253        m68k-*-linux*aout*)              fmt=aout em=linux ;;
254        m68k-*-linux-gnu*)               fmt=elf em=linux ;;
255 +      m68k-*-linux-uclibc*)            fmt=elf em=linux ;;
256        m68k-*-uclinux*)                 fmt=elf ;;
257        m68k-*-gnu*)                     fmt=elf ;;
258        m68k-*-lynxos*)                  fmt=coff em=lynx ;;
259 @@ -4460,7 +4472,7 @@
260        ppc-*-beos*)                     fmt=coff ;;
261        ppc-*-*n*bsd* | ppc-*-elf*)      fmt=elf ;;
262        ppc-*-eabi* | ppc-*-sysv4*)      fmt=elf ;;
263 -      ppc-*-linux-gnu*)                        fmt=elf em=linux
264 +      ppc-*-linux-uclibc* | ppc-*-linux-gnu*)                  fmt=elf em=linux
265             case "$endian" in
266                 big)  ;;
267                 *)    { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5
268 @@ -4487,7 +4499,9 @@
269        ppc-*-kaos*)                     fmt=elf ;;
270  
271        s390x-*-linux-gnu*)              fmt=elf em=linux ;;
272 +      s390x-*-linux-uclibc*)           fmt=elf em=linux ;;
273        s390-*-linux-gnu*)               fmt=elf em=linux ;;
274 +      s390-*-linux-uclibc*)            fmt=elf em=linux ;;
275  
276        sh*-*-linux*)                    fmt=elf em=linux
277             case ${cpu} in
278 @@ -4520,6 +4534,7 @@
279        sparc-*-coff)                    fmt=coff ;;
280        sparc-*-linux*aout*)             fmt=aout em=linux ;;
281        sparc-*-linux-gnu*)              fmt=elf em=linux ;;
282 +      sparc-*-linux-uclibc*)           fmt=elf em=linux ;;
283        sparc-*-lynxos*)                 fmt=coff em=lynx ;;
284        sparc-fujitsu-none)              fmt=aout ;;
285        sparc-*-elf)                     fmt=elf ;;
286 --- binutils-2.15.90.0.3/gas/configure.in.conf  2004-04-12 15:56:34.000000000 -0400
287 +++ binutils-2.15.90.0.3/gas/configure.in       2004-04-22 22:00:58.000000000 -0400
288 @@ -194,6 +194,7 @@
289        alpha*-*-osf*)                   fmt=ecoff ;;
290        alpha*-*-linuxecoff*)            fmt=ecoff ;;
291        alpha*-*-linux-gnu*)             fmt=elf em=linux ;;
292 +      alpha*-*-linux-uclibc*)          fmt=elf em=linux ;;
293        alpha*-*-netbsd*)                        fmt=elf em=nbsd ;;
294        alpha*-*-openbsd*)               fmt=elf em=obsd ;;
295  
296 @@ -210,6 +211,7 @@
297        arm*-*-conix*)                   fmt=elf ;;
298        arm-*-linux*aout*)               fmt=aout em=linux ;;
299        arm*-*-linux-gnu*)               fmt=elf  em=linux ;;
300 +      arm*-*-linux-uclibc*)            fmt=elf  em=linux ;;
301        arm*-*-uclinux*)                 fmt=elf  em=linux ;;
302        arm-*-netbsdelf*)                 fmt=elf  em=nbsd ;;
303        arm-*-*n*bsd*)                   fmt=aout em=nbsd ;;
304 @@ -223,6 +225,7 @@
305        avr-*-*)                         fmt=elf ;;
306  
307        cris-*-linux-gnu*)               fmt=multi bfd_gas=yes em=linux ;;
308 +      cris-*-linux-uclibc*)            fmt=multi bfd_gas=yes em=linux ;;
309        cris-*-*)                                fmt=multi bfd_gas=yes ;;
310  
311        d10v-*-*)                                fmt=elf ;;
312 @@ -279,7 +282,9 @@
313        i386-*-linux*oldld)              fmt=aout em=linux ;;
314        i386-*-linux*coff*)              fmt=coff em=linux ;;
315        i386-*-linux-gnu*)               fmt=elf em=linux ;;
316 +      i386-*-linux-uclibc*)            fmt=elf em=linux ;;
317        x86_64-*-linux-gnu*)             fmt=elf em=linux ;;
318 +      x86_64-*-linux-uclibc*)          fmt=elf em=linux ;;
319        i386-*-lynxos*)                  fmt=coff em=lynx ;;
320  changequote(,)dnl
321        i386-*-sysv[45]*)                        fmt=elf ;;
322 @@ -332,6 +337,7 @@
323        ia64-*-elf*)                     fmt=elf ;;
324        ia64-*-aix*)                     fmt=elf em=ia64aix ;;
325        ia64-*-linux-gnu*)               fmt=elf em=linux ;;
326 +      ia64-*-linux-uclibc*)            fmt=elf em=linux ;;
327        ia64-*-hpux*)                    fmt=elf em=hpux ;;
328        ia64-*-netbsd*)                  fmt=elf em=nbsd ;;
329  
330 @@ -359,6 +365,7 @@
331        m68k-*-hpux*)                    fmt=hp300 em=hp300 ;;
332        m68k-*-linux*aout*)              fmt=aout em=linux ;;
333        m68k-*-linux-gnu*)               fmt=elf em=linux ;;
334 +      m68k-*-linux-uclibc*)            fmt=elf em=linux ;;
335        m68k-*-uclinux*)                 fmt=elf ;;
336        m68k-*-gnu*)                     fmt=elf ;;
337        m68k-*-lynxos*)                  fmt=coff em=lynx ;;
338 @@ -418,7 +425,7 @@
339        ppc-*-beos*)                     fmt=coff ;;
340        ppc-*-*n*bsd* | ppc-*-elf*)      fmt=elf ;;
341        ppc-*-eabi* | ppc-*-sysv4*)      fmt=elf ;;
342 -      ppc-*-linux-gnu*)                        fmt=elf em=linux
343 +      ppc-*-linux-uclibc* | ppc-*-linux-gnu*)                  fmt=elf em=linux
344             case "$endian" in
345                 big)  ;;
346                 *)    AC_MSG_ERROR(GNU/Linux must be configured big endian) ;;
347 @@ -438,7 +445,9 @@
348        ppc-*-kaos*)                     fmt=elf ;;
349  
350        s390x-*-linux-gnu*)              fmt=elf em=linux ;;
351 +      s390x-*-linux-uclibc*)           fmt=elf em=linux ;;
352        s390-*-linux-gnu*)               fmt=elf em=linux ;;
353 +      s390-*-linux-uclibc*)            fmt=elf em=linux ;;
354  
355        sh*-*-linux*)                    fmt=elf em=linux
356             case ${cpu} in
357 @@ -471,6 +480,7 @@
358        sparc-*-coff)                    fmt=coff ;;
359        sparc-*-linux*aout*)             fmt=aout em=linux ;;
360        sparc-*-linux-gnu*)              fmt=elf em=linux ;;
361 +      sparc-*-linux-uclibc*)           fmt=elf em=linux ;;
362        sparc-*-lynxos*)                 fmt=coff em=lynx ;;
363        sparc-fujitsu-none)              fmt=aout ;;
364        sparc-*-elf)                     fmt=elf ;;
365 --- binutils-2.15.90.0.3/ld/configure.conf      2003-05-05 17:46:49.000000000 -0400
366 +++ binutils-2.15.90.0.3/ld/configure   2004-04-22 21:58:37.000000000 -0400
367 @@ -1578,6 +1578,11 @@
368    lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
369    ;;
370  
371 +linux-uclibc*)
372 +  lt_cv_deplibs_check_method=pass_all
373 +  lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
374 +  ;;
375 +
376  netbsd*)
377    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
378      lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
379 --- binutils-2.15.90.0.3/ld/configure.tgt.conf  2004-04-12 15:56:35.000000000 -0400
380 +++ binutils-2.15.90.0.3/ld/configure.tgt       2004-04-22 22:03:52.000000000 -0400
381 @@ -31,6 +31,7 @@
382                         targ_extra_emuls="criself crislinux"
383                         targ_extra_libpath=$targ_extra_emuls ;;
384  cris-*-linux-gnu*)     targ_emul=crislinux ;;
385 +cris-*-linux-uclibc*)  targ_emul=crislinux ;;
386  cris-*-*)              targ_emul=criself
387                         targ_extra_emuls="crisaout crislinux"
388                         targ_extra_libpath=$targ_extra_emuls ;;
389 @@ -60,14 +61,16 @@
390                         tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/aout//'`
391                         tdir_sun4=sparc-sun-sunos4
392                         ;;
393 -sparc64-*-linux-gnu*)  targ_emul=elf64_sparc
394 +sparc64-*-linux-gnu* | sparc64-*-linux-uclibc*)         \
395 +                       targ_emul=elf64_sparc
396                         targ_extra_emuls="elf32_sparc sparclinux sun4"
397                         targ_extra_libpath=elf32_sparc
398                         tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
399                         tdir_sparclinux=${tdir_elf32_sparc}aout
400                         tdir_sun4=sparc-sun-sunos4
401                         ;;
402 -sparc*-*-linux-gnu*)   targ_emul=elf32_sparc
403 +sparc*-*-linux-gnu* | sparc*-*-linux-uclibc*) \
404 +                       targ_emul=elf32_sparc
405                         targ_extra_emuls="sparclinux elf64_sparc sun4"
406                         targ_extra_libpath=elf64_sparc
407                         tdir_sparclinux=${targ_alias}aout
408 @@ -129,7 +132,7 @@
409  m68*-ericsson-ose)     targ_emul=sun3 ;;
410  m68*-apple-aux*)       targ_emul=m68kaux ;;
411  *-tandem-none)         targ_emul=st2000 ;;
412 -i370-*-elf* | i370-*-linux-gnu*) targ_emul=elf32i370 ;;
413 +i370-*-elf* | i370-*-linux-gnu* | i370-*-linux-uclibc*) targ_emul=elf32i370 ;;
414  i[3-7]86-*-nto-qnx*)   targ_emul=i386nto ;;
415  i[3-7]86-*-vsta)       targ_emul=vsta ;;
416  i[3-7]86-go32-rtems*)  targ_emul=i386go32 ;;
417 @@ -153,14 +156,16 @@
418                         tdir_elf_i386=`echo ${targ_alias} | sed -e 's/aout//'`
419                         ;;
420  i[3-7]86-*-linux*oldld)        targ_emul=i386linux; targ_extra_emuls=elf_i386 ;;
421 -i[3-7]86-*-linux-gnu*) targ_emul=elf_i386
422 +i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*) \
423 +                       targ_emul=elf_i386
424                         targ_extra_emuls=i386linux
425                         if test x${want64} = xtrue; then
426                           targ_extra_emuls="$targ_extra_emuls elf_x86_64"
427                         fi
428                         tdir_i386linux=${targ_alias}aout
429                         ;;
430 -x86_64-*-linux-gnu*)   targ_emul=elf_x86_64
431 +x86_64-*-linux-gnu* | x86_64-*-linux-uclibc*) \
432 +                       targ_emul=elf_x86_64
433                         targ_extra_emuls="elf_i386 i386linux"
434                         targ_extra_libpath=elf_i386
435                         tdir_i386linux=`echo ${targ_alias}aout | sed -e 's/x86_64/i386/'`
436 @@ -260,10 +265,13 @@
437  arm9e-*-elf)           targ_emul=armelf ;;
438  arm-*-oabi)            targ_emul=armelf_oabi ;;
439  arm*b-*-linux-gnu*)    targ_emul=armelfb_linux; targ_extra_emuls=armelfb ;;
440 +arm*b-*-linux-uclibc*) targ_emul=armelfb_linux; targ_extra_emuls=armelfb ;;
441  arm*-*-linux-gnu*)     targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
442 +arm*-*-linux-uclibc*)  targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
443  arm*-*-uclinux*)       targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
444  arm*-*-conix*)         targ_emul=armelf ;;
445 -thumb-*-linux-gnu* | thumb-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
446 +thumb-*-linux-gnu* | thumb-*-linux-uclibc* | thumb-*-uclinux*) \
447 +                       targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
448  strongarm-*-coff)      targ_emul=armcoff ;;
449  strongarm-*-elf)       targ_emul=armelf ;;
450  strongarm-*-kaos*)     targ_emul=armelf ;;
451 @@ -365,7 +373,8 @@
452                         targ_extra_emuls=m68kelf
453                         tdir_m68kelf=`echo ${targ_alias} | sed -e 's/aout//'`
454                         ;;
455 -m68k-*-linux-gnu*)     targ_emul=m68kelf
456 +m68k-*-linux-gnu* | m68k-*-linux-uclibc*) \
457 +                       targ_emul=m68kelf
458                         targ_extra_emuls=m68klinux
459                         tdir_m68klinux=`echo ${targ_alias} | sed -e 's/linux/linuxaout/'`
460                         ;;
461 @@ -382,9 +391,9 @@
462  m68*-*-psos*)          targ_emul=m68kpsos ;;
463  m68*-*-rtemscoff*)     targ_emul=m68kcoff ;;
464  m68*-*-rtems*)         targ_emul=m68kelf ;;
465 -hppa*64*-*-linux-gnu*) targ_emul=hppa64linux ;;
466 +hppa*64*-*-linux-gnu* | hppa*64*-*-linux-uclibc*)  targ_emul=hppa64linux ;;
467  hppa*64*-*)            targ_emul=elf64hppa ;;
468 -hppa*-*-linux-gnu*)    targ_emul=hppalinux ;;
469 +hppa*-*-linux-gnu* | hppa*-*-linux-uclibc*)    targ_emul=hppalinux ;;
470  hppa*-*-*elf*)         targ_emul=hppaelf ;;
471  hppa*-*-lites*)                targ_emul=hppaelf ;;
472  hppa*-*-netbsd*)       targ_emul=hppanbsd ;;
473 @@ -430,16 +439,20 @@
474  mips*-*-vxworks*)      targ_emul=elf32ebmip
475                         targ_extra_emuls="elf32elmip" ;;
476  mips*-*-windiss)       targ_emul=elf32mipswindiss ;;
477 -mips64*el-*-linux-gnu*)        targ_emul=elf32ltsmipn32
478 +mips64*el-*-linux-gnu* | mips64*el-*-linux-uclibc*)
479 +                       targ_emul=elf32ltsmipn32
480                         targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip"
481                         ;;
482 -mips64*-*-linux-gnu*)  targ_emul=elf32btsmipn32
483 +mips64*-*-linux-gnu* | mips64*-*-linux-uclibc*)
484 +                       targ_emul=elf32btsmipn32
485                         targ_extra_emuls="elf32ltsmipn32 elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip"
486                         ;;
487 -mips*el-*-linux-gnu*)  targ_emul=elf32ltsmip
488 +mips*el-*-linux-gnu* | mips*el-*-linux-uclibc*)
489 +                       targ_emul=elf32ltsmip
490                         targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip"
491                         ;;
492 -mips*-*-linux-gnu*)    targ_emul=elf32btsmip
493 +mips*-*-linux-gnu* | mips*-*-linux-uclibc*)
494 +                       targ_emul=elf32btsmip
495                         targ_extra_emuls="elf32ltsmip elf32btsmipn32 elf64btsmip elf32ltsmipn32 elf64ltsmip"
496                         ;;
497  mips*-*-lnews*)                targ_emul=mipslnews ;;
498 @@ -462,6 +475,10 @@
499  alpha*-*-linux-gnu*)   targ_emul=elf64alpha targ_extra_emuls=alpha
500                         tdir_alpha=`echo ${targ_alias} | sed -e 's/linux/linuxecoff/'`
501                         ;;
502 +alpha*-*-linux-uclibc*)        targ_emul=elf64alpha targ_extra_emuls=alpha
503 +                       # The following needs to be checked...
504 +                       tdir_alpha=`echo ${targ_alias} | sed -e 's/linux/linuxecoff/'`
505 +                       ;;
506  alpha*-*-osf*)         targ_emul=alpha ;;
507  alpha*-*-gnu*)         targ_emul=elf64alpha ;;
508  alpha*-*-netware*)     targ_emul=alpha ;;
509 --- binutils-2.15.90.0.3/configure.conf 2004-04-12 15:56:33.000000000 -0400
510 +++ binutils-2.15.90.0.3/configure      2004-04-22 21:58:37.000000000 -0400
511 @@ -1298,6 +1298,18 @@
512    i[3456789]86-*-freebsd* | i[3456789]86-*-kfreebsd*-gnu)
513      noconfigdirs="$noconfigdirs target-newlib target-libgloss"
514      ;;
515 +  i[3456789]86-*-linux-uclibc)
516 +    # This section makes it possible to build newlib natively on linux.
517 +    # If we are using a cross compiler then don't configure newlib.
518 +    if test x${is_cross_compiler} != xno ; then
519 +      noconfigdirs="$noconfigdirs target-newlib"
520 +    fi
521 +    noconfigdirs="$noconfigdirs target-libgloss"
522 +    # If we are not using a cross compiler, do configure newlib.
523 +    # Note however, that newlib will only be configured in this situation
524 +    # if the --with-newlib option has been given, because otherwise
525 +    # 'target-newlib' will appear in skipdirs.
526 +    ;;
527    i[3456789]86-*-linux*)
528      # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
529      # not build java stuff by default.
530 --- binutils-2.15.90.0.3/configure.in.conf      2004-04-12 15:56:33.000000000 -0400
531 +++ binutils-2.15.90.0.3/configure.in   2004-04-22 21:58:37.000000000 -0400
532 @@ -521,6 +521,19 @@
533    i[[3456789]]86-*-freebsd* | i[[3456789]]86-*-kfreebsd*-gnu)
534      noconfigdirs="$noconfigdirs target-newlib target-libgloss"
535      ;;
536 +  i[3456789]86-*-linux-uclibc)
537 +    # This section makes it possible to build newlib natively on linux.
538 +    # If we are using a cross compiler then don't configure newlib.
539 +    if test x${is_cross_compiler} != xno ; then
540 +      noconfigdirs="$noconfigdirs target-newlib"
541 +    fi
542 +    noconfigdirs="$noconfigdirs target-libgloss"
543 +    build_modules=
544 +    # If we are not using a cross compiler, do configure newlib.
545 +    # Note however, that newlib will only be configured in this situation
546 +    # if the --with-newlib option has been given, because otherwise
547 +    # 'target-newlib' will appear in skipdirs.
548 +    ;;
549    i[[3456789]]86-*-linux*)
550      # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
551      # not build java stuff by default.
552 --- binutils-2.15.90.0.3/libtool.m4.conf        2003-05-05 17:46:46.000000000 -0400
553 +++ binutils-2.15.90.0.3/libtool.m4     2004-04-22 21:58:37.000000000 -0400
554 @@ -645,6 +645,11 @@
555    lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
556    ;;
557  
558 +linux-uclibc*)
559 +  lt_cv_deplibs_check_method=pass_all
560 +  lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
561 +  ;;
562 +
563  netbsd*)
564    if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
565      [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
566 --- binutils-2.15.90.0.3/ltconfig.conf  2004-01-14 16:07:42.000000000 -0500
567 +++ binutils-2.15.90.0.3/ltconfig       2004-04-22 21:58:37.000000000 -0400
568 @@ -603,6 +603,7 @@
569  # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
570  case $host_os in
571  linux-gnu*) ;;
572 +linux-uclibc*) ;;
573  linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
574  esac
575  
576 @@ -1259,6 +1260,24 @@
577    dynamic_linker='GNU/Linux ld.so'
578    ;;
579  
580 +linux-uclibc*)
581 +  version_type=linux
582 +  need_lib_prefix=no
583 +  need_version=no
584 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
585 +  soname_spec='${libname}${release}.so$major'
586 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
587 +  shlibpath_var=LD_LIBRARY_PATH
588 +  shlibpath_overrides_runpath=no
589 +  # This implies no fast_install, which is unacceptable.
590 +  # Some rework will be needed to allow for fast_install
591 +  # before this can be enabled.
592 +  # Note: copied from linux-gnu, and may not be appropriate.
593 +  hardcode_into_libs=yes
594 +  # Assume using the uClibc dynamic linker.
595 +  dynamic_linker="uClibc ld.so"
596 +  ;;
597 +
598  netbsd*)
599    need_lib_prefix=no
600    need_version=no