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