improve GJC support, honour GCJ_FOR_ECJX from env
[buildroot.git] / toolchain / gcc / 4.0.1 / 100-uclibc-conf.patch
blobd9d62f4fa553c89684c694bc5d755b4f44f7e76e
1 diff -urN gcc-4.0.0-dist/boehm-gc/configure gcc-4.0.0/boehm-gc/configure
2 --- gcc-4.0.0-dist/boehm-gc/configure 2005-04-21 02:04:10.000000000 -0500
3 +++ gcc-4.0.0/boehm-gc/configure 2005-04-30 13:22:27.495094224 -0500
4 @@ -4320,6 +4320,11 @@
5 lt_cv_deplibs_check_method=pass_all
6 ;;
8 +linux-uclibc*)
9 + lt_cv_deplibs_check_method=pass_all
10 + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
11 + ;;
13 netbsd* | knetbsd*-gnu)
14 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
15 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
16 diff -urN gcc-4.0.0-dist/configure gcc-4.0.0/configure
17 --- gcc-4.0.0-dist/configure 2005-04-21 02:04:10.000000000 -0500
18 +++ gcc-4.0.0/configure 2005-04-30 12:27:56.000000000 -0500
19 @@ -1136,7 +1136,7 @@
21 "")
22 case "${target}" in
23 - *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
24 + *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu | *-*-linux-uclibc*)
25 # Enable libmudflap by default in GNU and friends.
27 *-*-freebsd*)
28 diff -urN gcc-4.0.0-dist/configure.in gcc-4.0.0/configure.in
29 --- gcc-4.0.0-dist/configure.in 2005-04-20 21:45:11.000000000 -0500
30 +++ gcc-4.0.0/configure.in 2005-04-30 12:22:09.000000000 -0500
31 @@ -345,7 +345,7 @@
33 "")
34 case "${target}" in
35 - *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
36 + *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu | *-*-linux-uclibc*)
37 # Enable libmudflap by default in GNU and friends.
39 *-*-freebsd*)
40 diff -urN gcc-4.0.0-dist/contrib/regression/objs-gcc.sh gcc-4.0.0/contrib/regression/objs-gcc.sh
41 --- gcc-4.0.0-dist/contrib/regression/objs-gcc.sh 2002-10-11 15:23:21.000000000 -0500
42 +++ gcc-4.0.0/contrib/regression/objs-gcc.sh 2005-04-30 12:29:58.000000000 -0500
43 @@ -105,6 +105,10 @@
44 then
45 make all-gdb all-dejagnu all-ld || exit 1
46 make install-gdb install-dejagnu install-ld || exit 1
47 +elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ]
48 + then
49 + make all-gdb all-dejagnu all-ld || exit 1
50 + make install-gdb install-dejagnu install-ld || exit 1
51 elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then
52 make bootstrap || exit 1
53 make install || exit 1
54 --- gcc-3.4.4/gcc/config/alpha/linux-elf.h
55 +++ gcc-3.4.4/gcc/config/alpha/linux-elf.h
56 @@ -27,7 +27,11 @@
57 #define SUBTARGET_EXTRA_SPECS \
58 { "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
60 +#if defined USE_UCLIBC
61 +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
62 +#else
63 #define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2"
64 +#endif
66 #define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \
67 %{O*:-O3} %{!O*:-O1} \
68 diff -urN gcc-4.0.0-dist/gcc/config/arm/linux-elf.h gcc-4.0.0/gcc/config/arm/linux-elf.h
69 --- gcc-4.0.0-dist/gcc/config/arm/linux-elf.h 2005-03-04 10:14:01.000000000 -0600
70 +++ gcc-4.0.0/gcc/config/arm/linux-elf.h 2005-04-28 20:30:00.000000000 -0500
71 @@ -82,6 +82,18 @@
72 "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
74 #undef LINK_SPEC
75 +#ifdef USE_UCLIBC
76 +#define LINK_SPEC "%{h*} %{version:-v} \
77 + %{b} %{Wl,*:%*} \
78 + %{static:-Bstatic} \
79 + %{shared:-shared} \
80 + %{symbolic:-Bsymbolic} \
81 + %{rdynamic:-export-dynamic} \
82 + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0} \
83 + -X \
84 + %{mbig-endian:-EB}" \
85 + SUBTARGET_EXTRA_LINK_SPEC
86 +#else
87 #define LINK_SPEC "%{h*} %{version:-v} \
88 %{b} %{Wl,*:%*} \
89 %{static:-Bstatic} \
90 @@ -92,6 +104,7 @@
91 -X \
92 %{mbig-endian:-EB}" \
93 SUBTARGET_EXTRA_LINK_SPEC
94 +#endif
96 #define TARGET_OS_CPP_BUILTINS() \
97 do \
98 diff -urN gcc-4.0.0-dist/gcc/config/cris/linux.h gcc-4.0.0/gcc/config/cris/linux.h
99 --- gcc-4.0.0-dist/gcc/config/cris/linux.h 2003-11-28 21:08:09.000000000 -0600
100 +++ gcc-4.0.0/gcc/config/cris/linux.h 2005-04-28 20:30:00.000000000 -0500
101 @@ -79,6 +79,25 @@
102 #undef CRIS_DEFAULT_CPU_VERSION
103 #define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
105 +#ifdef USE_UCLIBC
107 +#undef CRIS_SUBTARGET_VERSION
108 +#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-uclibc"
110 +#undef CRIS_LINK_SUBTARGET_SPEC
111 +#define CRIS_LINK_SUBTARGET_SPEC \
112 + "-mcrislinux\
113 + -rpath-link include/asm/../..%s\
114 + %{shared} %{static}\
115 + %{symbolic:-Bdynamic} %{shlib:-Bdynamic} %{static:-Bstatic}\
116 + %{!shared: \
117 + %{!static: \
118 + %{rdynamic:-export-dynamic} \
119 + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}} \
120 + %{!r:%{O2|O3: --gc-sections}}"
122 +#else /* USE_UCLIBC */
124 #undef CRIS_SUBTARGET_VERSION
125 #define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
127 @@ -93,6 +112,8 @@
128 %{!shared:%{!static:%{rdynamic:-export-dynamic}}}\
129 %{!r:%{O2|O3: --gc-sections}}"
131 +#endif /* USE_UCLIBC */
134 /* Node: Run-time Target */
136 diff -urN gcc-4.0.0-dist/gcc/config/cris/t-linux-uclibc gcc-4.0.0/gcc/config/cris/t-linux-uclibc
137 --- gcc-4.0.0-dist/gcc/config/cris/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
138 +++ gcc-4.0.0/gcc/config/cris/t-linux-uclibc 2005-04-28 20:30:00.000000000 -0500
139 @@ -0,0 +1,3 @@
140 +T_CFLAGS = -DUSE_UCLIBC
141 +TARGET_LIBGCC2_CFLAGS += -fPIC
142 +CRTSTUFF_T_CFLAGS_S = $(TARGET_LIBGCC2_CFLAGS)
143 diff -urN gcc-4.0.0-dist/gcc/config/i386/linux.h gcc-4.0.0/gcc/config/i386/linux.h
144 --- gcc-4.0.0-dist/gcc/config/i386/linux.h 2004-11-27 10:45:14.000000000 -0600
145 +++ gcc-4.0.0/gcc/config/i386/linux.h 2005-04-28 20:30:00.000000000 -0500
146 @@ -107,6 +107,11 @@
147 #define LINK_EMULATION "elf_i386"
148 #define DYNAMIC_LINKER "/lib/ld-linux.so.2"
150 +#if defined USE_UCLIBC
151 +#undef DYNAMIC_LINKER
152 +#define DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
153 +#endif
155 #undef SUBTARGET_EXTRA_SPECS
156 #define SUBTARGET_EXTRA_SPECS \
157 { "link_emulation", LINK_EMULATION },\
158 --- gcc-3.4.4/gcc/config/i386/linux64.h
159 +++ gcc-3.4.4/gcc/config/i386/linux64.h
160 @@ -55,6 +55,15 @@
161 done. */
163 #undef LINK_SPEC
164 +#if defined USE_UCLIBC
165 +#define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} \
166 + %{shared:-shared} \
167 + %{!shared: \
168 + %{!static: \
169 + %{rdynamic:-export-dynamic} \
170 + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
171 + %{static:-static}}"
172 +#else
173 #define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} \
174 %{shared:-shared} \
175 %{!shared: \
176 @@ -63,6 +73,7 @@
177 %{m32:%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
178 %{!m32:%{!dynamic-linker:-dynamic-linker /lib64/ld-linux-x86-64.so.2}}} \
179 %{static:-static}}"
180 +#endif
182 #define MULTILIB_DEFAULTS { "m64" }
184 diff -urN gcc-4.0.0-dist/gcc/config/mips/linux.h gcc-4.0.0/gcc/config/mips/linux.h
185 --- gcc-4.0.0-dist/gcc/config/mips/linux.h 2005-01-25 20:04:46.000000000 -0600
186 +++ gcc-4.0.0/gcc/config/mips/linux.h 2005-04-28 20:30:00.000000000 -0500
187 @@ -108,6 +108,17 @@
189 /* Borrowed from sparc/linux.h */
190 #undef LINK_SPEC
191 +#ifdef USE_UCLIBC
192 +#define LINK_SPEC \
193 + "%(endian_spec) \
194 + %{shared:-shared} \
195 + %{!shared: \
196 + %{!ibcs: \
197 + %{!static: \
198 + %{rdynamic:-export-dynamic} \
199 + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
200 + %{static:-static}}}"
201 +#else
202 #define LINK_SPEC \
203 "%(endian_spec) \
204 %{shared:-shared} \
205 @@ -117,6 +128,7 @@
206 %{rdynamic:-export-dynamic} \
207 %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
208 %{static:-static}}}"
209 +#endif
211 #undef SUBTARGET_ASM_SPEC
212 #define SUBTARGET_ASM_SPEC "%{mabi=64: -64} %{!mno-abicalls:-KPIC}"
213 diff -urN gcc-4.0.0-dist/gcc/config/rs6000/linux.h gcc-4.0.0/gcc/config/rs6000/linux.h
214 --- gcc-4.0.0-dist/gcc/config/rs6000/linux.h 2004-12-01 20:21:28.000000000 -0600
215 +++ gcc-4.0.0/gcc/config/rs6000/linux.h 2005-04-28 20:30:00.000000000 -0500
216 @@ -69,7 +69,11 @@
217 #define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
219 #undef LINK_OS_DEFAULT_SPEC
220 +#ifdef USE_UCLIBC
221 +#define LINK_OS_DEFAULT_SPEC "%(link_os_linux_uclibc)"
222 +#else
223 #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
224 +#endif
226 #define LINK_GCC_C_SEQUENCE_SPEC \
227 "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
228 diff -urN gcc-4.0.0-dist/gcc/config/rs6000/sysv4.h gcc-4.0.0/gcc/config/rs6000/sysv4.h
229 --- gcc-4.0.0-dist/gcc/config/rs6000/sysv4.h 2005-02-15 09:53:52.000000000 -0600
230 +++ gcc-4.0.0/gcc/config/rs6000/sysv4.h 2005-04-28 20:30:00.000000000 -0500
231 @@ -956,6 +956,7 @@
232 mcall-linux : %(link_os_linux) ; \
233 mcall-gnu : %(link_os_gnu) ; \
234 mcall-netbsd : %(link_os_netbsd) ; \
235 + mcall-linux-uclibc : %(link_os_linux_uclibc); \
236 mcall-openbsd: %(link_os_openbsd) ; \
237 : %(link_os_default) }"
239 @@ -1134,6 +1135,10 @@
240 %{rdynamic:-export-dynamic} \
241 %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
243 +#define LINK_OS_LINUX_UCLIBC_SPEC "-m elf32ppclinux %{!shared: %{!static: \
244 + %{rdynamic:-export-dynamic} \
245 + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}}"
247 #if defined(HAVE_LD_EH_FRAME_HDR)
248 # define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
249 #endif
250 @@ -1300,6 +1305,7 @@
251 { "link_os_sim", LINK_OS_SIM_SPEC }, \
252 { "link_os_freebsd", LINK_OS_FREEBSD_SPEC }, \
253 { "link_os_linux", LINK_OS_LINUX_SPEC }, \
254 + { "link_os_linux_uclibc", LINK_OS_LINUX_UCLIBC_SPEC }, \
255 { "link_os_gnu", LINK_OS_GNU_SPEC }, \
256 { "link_os_netbsd", LINK_OS_NETBSD_SPEC }, \
257 { "link_os_openbsd", LINK_OS_OPENBSD_SPEC }, \
258 diff -urN gcc-4.0.0-dist/gcc/config/sh/linux.h gcc-4.0.0/gcc/config/sh/linux.h
259 --- gcc-4.0.0-dist/gcc/config/sh/linux.h 2005-01-25 20:04:48.000000000 -0600
260 +++ gcc-4.0.0/gcc/config/sh/linux.h 2005-04-28 20:30:00.000000000 -0500
261 @@ -67,12 +67,21 @@
262 #undef SUBTARGET_LINK_EMUL_SUFFIX
263 #define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
264 #undef SUBTARGET_LINK_SPEC
265 +#ifdef USE_UCLIBC
266 +#define SUBTARGET_LINK_SPEC \
267 + "%{shared:-shared} \
268 + %{!static: \
269 + %{rdynamic:-export-dynamic} \
270 + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
271 + %{static:-static}"
272 +#else
273 #define SUBTARGET_LINK_SPEC \
274 "%{shared:-shared} \
275 %{!static: \
276 %{rdynamic:-export-dynamic} \
277 %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
278 %{static:-static}"
279 +#endif
281 #undef LIB_SPEC
282 #define LIB_SPEC \
283 diff -urN gcc-4.0.0-dist/gcc/config/t-linux-uclibc gcc-4.0.0/gcc/config/t-linux-uclibc
284 --- gcc-4.0.0-dist/gcc/config/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
285 +++ gcc-4.0.0/gcc/config/t-linux-uclibc 2005-04-28 20:30:00.000000000 -0500
286 @@ -0,0 +1,15 @@
287 +T_CFLAGS = -DUSE_UCLIBC
289 +# Compile crtbeginS.o and crtendS.o with pic.
290 +CRTSTUFF_T_CFLAGS_S = $(CRTSTUFF_T_CFLAGS) -fPIC
291 +# Compile libgcc2.a with pic.
292 +TARGET_LIBGCC2_CFLAGS = -fPIC
294 +# Override t-slibgcc-elf-ver to export some libgcc symbols with
295 +# the symbol versions that glibc used.
296 +#SHLIB_MAPFILES += $(srcdir)/config/libgcc-glibc.ver
298 +# Use unwind-dw2-fde
299 +LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
300 + $(srcdir)/unwind-sjlj.c $(srcdir)/gthr-gnat.c $(srcdir)/unwind-c.c
301 +LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h
302 diff -urN gcc-4.0.0-dist/gcc/config.gcc gcc-4.0.0/gcc/config.gcc
303 --- gcc-4.0.0-dist/gcc/config.gcc 2005-03-30 21:17:08.000000000 -0600
304 +++ gcc-4.0.0/gcc/config.gcc 2005-04-28 20:30:00.000000000 -0500
305 @@ -439,7 +439,12 @@
306 case ${enable_threads} in
307 "" | yes | posix) thread_file='posix' ;;
308 esac
309 - tmake_file="t-slibgcc-elf-ver t-linux"
310 + case ${target} in
311 + *-*-linux-uclibc*)
312 + tmake_file="t-slibgcc-elf-ver t-linux-uclibc" ;;
313 + *)
314 + tmake_file="t-slibgcc-elf-ver t-linux" ;;
315 + esac
317 *-*-gnu*)
318 # On the Hurd, the setup is just about the same on
319 @@ -744,6 +749,10 @@
320 tmake_file="cris/t-cris cris/t-elfmulti"
321 gas=yes
323 +cris-*-linux-uclibc*)
324 + tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
325 + tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux-uclibc"
326 + ;;
327 cris-*-linux*)
328 tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
329 # We need to avoid using t-linux, so override default tmake_file
330 @@ -1759,7 +1759,7 @@
332 sh-*-elf* | sh[12346l]*-*-elf* | sh*-*-kaos* | \
333 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
334 - sh-*-linux* | sh[346lbe]*-*-linux* | \
335 + sh*-*-linux* | sh[346lbe]*-*-linux* | \
336 sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
337 sh64-*-netbsd* | sh64l*-*-netbsd*)
338 tmake_file="${tmake_file} sh/t-sh sh/t-elf"
339 diff -urN gcc-4.0.0-dist/libffi/configure gcc-4.0.0/libffi/configure
340 --- gcc-4.0.0-dist/libffi/configure 2004-12-02 05:04:21.000000000 -0600
341 +++ gcc-4.0.0/libffi/configure 2005-04-30 12:18:05.000000000 -0500
342 @@ -3457,6 +3457,11 @@
343 lt_cv_deplibs_check_method=pass_all
346 +linux-uclibc*)
347 + lt_cv_deplibs_check_method=pass_all
348 + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
349 + ;;
351 netbsd* | knetbsd*-gnu)
352 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
353 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
354 diff -urN gcc-4.0.0-dist/libgfortran/configure gcc-4.0.0/libgfortran/configure
355 --- gcc-4.0.0-dist/libgfortran/configure 2005-04-21 02:04:10.000000000 -0500
356 +++ gcc-4.0.0/libgfortran/configure 2005-04-30 12:26:15.000000000 -0500
357 @@ -3684,6 +3684,11 @@
358 lt_cv_deplibs_check_method=pass_all
361 +linux-uclibc*)
362 + lt_cv_deplibs_check_method=pass_all
363 + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
364 + ;;
366 netbsd* | knetbsd*-gnu)
367 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
368 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
369 diff -urN gcc-4.0.0-dist/libjava/configure gcc-4.0.0/libjava/configure
370 --- gcc-4.0.0-dist/libjava/configure 2005-04-21 02:04:10.000000000 -0500
371 +++ gcc-4.0.0/libjava/configure 2005-04-30 12:27:15.000000000 -0500
372 @@ -4354,6 +4354,11 @@
373 lt_cv_deplibs_check_method=pass_all
376 +linux-uclibc*)
377 + lt_cv_deplibs_check_method=pass_all
378 + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
379 + ;;
381 netbsd* | knetbsd*-gnu)
382 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
383 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
384 diff -urN gcc-4.0.0-dist/libmudflap/configure gcc-4.0.0/libmudflap/configure
385 --- gcc-4.0.0-dist/libmudflap/configure 2005-01-02 16:24:50.000000000 -0600
386 +++ gcc-4.0.0/libmudflap/configure 2005-04-30 12:25:24.000000000 -0500
387 @@ -5380,6 +5380,11 @@
388 lt_cv_deplibs_check_method=pass_all
391 +linux-uclibc*)
392 + lt_cv_deplibs_check_method=pass_all
393 + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
394 + ;;
396 netbsd* | knetbsd*-gnu)
397 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
398 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
399 diff -urN gcc-4.0.0-dist/libobjc/configure gcc-4.0.0/libobjc/configure
400 --- gcc-4.0.0-dist/libobjc/configure 2005-04-21 02:04:10.000000000 -0500
401 +++ gcc-4.0.0/libobjc/configure 2005-04-30 12:25:55.000000000 -0500
402 @@ -3283,6 +3283,11 @@
403 lt_cv_deplibs_check_method=pass_all
406 +linux-uclibc*)
407 + lt_cv_deplibs_check_method=pass_all
408 + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
409 + ;;
411 netbsd* | knetbsd*-gnu)
412 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
413 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
414 diff -urN gcc-4.0.0-dist/libtool.m4 gcc-4.0.0/libtool.m4
415 --- gcc-4.0.0-dist/libtool.m4 2004-11-29 17:45:17.000000000 -0600
416 +++ gcc-4.0.0/libtool.m4 2005-04-30 12:28:32.000000000 -0500
417 @@ -682,6 +682,11 @@
418 lt_cv_deplibs_check_method=pass_all
421 +linux-uclibc*)
422 + lt_cv_deplibs_check_method=pass_all
423 + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
424 + ;;
426 netbsd* | knetbsd*-gnu)
427 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
428 [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
429 diff -urN gcc-4.0.0-dist/ltconfig gcc-4.0.0/ltconfig
430 --- gcc-4.0.0-dist/ltconfig 2004-10-02 11:33:06.000000000 -0500
431 +++ gcc-4.0.0/ltconfig 2005-04-30 13:26:08.000000000 -0500
432 @@ -602,6 +602,7 @@
434 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
435 case $host_os in
436 +linux-uclibc*) ;;
437 linux-gnu*) ;;
438 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
439 esac
440 @@ -1273,6 +1274,23 @@
441 dynamic_linker='GNU/Linux ld.so'
444 +linux-uclibc*)
445 + version_type=linux
446 + need_lib_prefix=no
447 + need_version=no
448 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
449 + soname_spec='${libname}${release}.so$major'
450 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
451 + shlibpath_var=LD_LIBRARY_PATH
452 + shlibpath_overrides_runpath=no
453 + # This implies no fast_install, which is unacceptable.
454 + # Some rework will be needed to allow for fast_install
455 + # before this can be enabled.
456 + hardcode_into_libs=yes
457 + # Assume using the uClibc dynamic linker.
458 + dynamic_linker="uClibc ld.so"
459 + ;;
461 netbsd*)
462 need_lib_prefix=no
463 need_version=no
464 diff -urN gcc-4.0.0-dist/zlib/configure gcc-4.0.0/zlib/configure
465 --- gcc-4.0.0-dist/zlib/configure 2004-11-24 16:04:38.000000000 -0600
466 +++ gcc-4.0.0/zlib/configure 2005-04-30 12:30:40.000000000 -0500
467 @@ -3426,6 +3426,11 @@
468 lt_cv_deplibs_check_method=pass_all
471 +linux-uclibc*)
472 + lt_cv_deplibs_check_method=pass_all
473 + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
474 + ;;
476 netbsd* | knetbsd*-gnu)
477 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
478 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'