| --- gcc-4.1.2.orig/gcc/config/t-linux-uclibc 1970-01-01 01:00:00.000000000 +0100 |
| +++ gcc-4.1.2/gcc/config/t-linux-uclibc 2007-03-04 23:25:07.000000000 +0100 |
| @@ -0,0 +1,5 @@ |
| +# Remove glibc specific files added in t-linux |
| +SHLIB_MAPFILES := $(filter-out $(srcdir)/config/libgcc-glibc.ver, $(SHLIB_MAPFILES)) |
| + |
| +# Use unwind-dw2-fde instead of unwind-dw2-fde-glibc |
| +LIB2ADDEH := $(subst unwind-dw2-fde-glibc.c,unwind-dw2-fde.c,$(LIB2ADDEH)) |
| --- gcc-4.1.2.orig/gcc/config.gcc 2006-10-16 01:12:23.000000000 +0200 |
| +++ gcc-4.1.2/gcc/config.gcc 2007-03-04 23:25:07.000000000 +0100 |
| @@ -1884,7 +1884,7 @@ |
| ;; |
| sh-*-elf* | sh[12346l]*-*-elf* | sh*-*-kaos* | \ |
| sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \ |
| - sh-*-linux* | sh[346lbe]*-*-linux* | \ |
| + sh*-*-linux* | sh[346lbe]*-*-linux* | \ |
| sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \ |
| sh64-*-netbsd* | sh64l*-*-netbsd*) |
| tmake_file="${tmake_file} sh/t-sh sh/t-elf" |
| @@ -2338,6 +2338,12 @@ |
| ;; |
| esac |
| |
| +# Rather than hook into each target, just do it after all the linux |
| +# targets have been processed |
| +case ${target} in |
| +*-linux-uclibc*) tm_defines="${tm_defines} USE_UCLIBC" ; tmake_file="${tmake_file} t-linux-uclibc" |
| +esac |
| + |
| case ${target} in |
| i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1) |
| tmake_file="${tmake_file} i386/t-gmm_malloc" |
| --- gcc-4.1.2.orig/boehm-gc/configure 2007-02-14 06:17:22.000000000 +0100 |
| +++ gcc-4.1.2/boehm-gc/configure 2007-03-04 23:25:07.000000000 +0100 |
| @@ -4320,6 +4320,11 @@ |
| lt_cv_deplibs_check_method=pass_all |
| ;; |
| |
| +linux-uclibc*) |
| + lt_cv_deplibs_check_method=pass_all |
| + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` |
| + ;; |
| + |
| netbsd* | knetbsd*-gnu) |
| if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
| --- gcc-4.1.2.orig/configure 2006-11-21 18:48:36.000000000 +0100 |
| +++ gcc-4.1.2/configure 2007-03-04 23:25:07.000000000 +0100 |
| @@ -1133,7 +1133,7 @@ |
| ;; |
| "") |
| case "${target}" in |
| - *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu) |
| + *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu | *-*-linux-uclibc*) |
| # Enable libmudflap by default in GNU and friends. |
| ;; |
| *-*-freebsd*) |
| --- gcc-4.1.2.orig/configure.in 2006-11-21 18:48:36.000000000 +0100 |
| +++ gcc-4.1.2/configure.in 2007-03-04 23:25:07.000000000 +0100 |
| @@ -341,7 +341,7 @@ |
| ;; |
| "") |
| case "${target}" in |
| - *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu) |
| + *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu | *-*-linux-uclibc*) |
| # Enable libmudflap by default in GNU and friends. |
| ;; |
| *-*-freebsd*) |
| --- gcc-4.1.2.orig/contrib/regression/objs-gcc.sh 2005-08-15 02:41:31.000000000 +0200 |
| +++ gcc-4.1.2/contrib/regression/objs-gcc.sh 2007-03-04 23:25:07.000000000 +0100 |
| @@ -105,6 +105,10 @@ |
| then |
| make all-gdb all-dejagnu all-ld || exit 1 |
| make install-gdb install-dejagnu install-ld || exit 1 |
| +elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ] |
| + then |
| + make all-gdb all-dejagnu all-ld || exit 1 |
| + make install-gdb install-dejagnu install-ld || exit 1 |
| elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then |
| make bootstrap || exit 1 |
| make install || exit 1 |
| --- gcc-4.1.2.orig/gcc/config/alpha/linux-elf.h 2005-06-25 03:22:41.000000000 +0200 |
| +++ gcc-4.1.2/gcc/config/alpha/linux-elf.h 2007-03-04 23:25:07.000000000 +0100 |
| @@ -27,7 +27,11 @@ |
| #define SUBTARGET_EXTRA_SPECS \ |
| { "elf_dynamic_linker", ELF_DYNAMIC_LINKER }, |
| |
| +#if defined USE_UCLIBC |
| +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" |
| +#else |
| #define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2" |
| +#endif |
| |
| #define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \ |
| %{O*:-O3} %{!O*:-O1} \ |
| --- gcc-4.1.2.orig/gcc/config/arm/linux-elf.h 2005-10-10 03:04:31.000000000 +0200 |
| +++ gcc-4.1.2/gcc/config/arm/linux-elf.h 2007-03-04 23:25:07.000000000 +0100 |
| @@ -51,7 +51,11 @@ |
| |
| #define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc" |
| |
| +#ifdef USE_UCLIBC |
| +#define LINUX_TARGET_INTERPRETER "/lib/ld-uClibc.so.0" |
| +#else |
| #define LINUX_TARGET_INTERPRETER "/lib/ld-linux.so.2" |
| +#endif |
| |
| #define LINUX_TARGET_LINK_SPEC "%{h*} %{version:-v} \ |
| %{b} \ |
| --- gcc-4.1.2.orig/gcc/config/cris/linux.h 2005-06-25 03:22:41.000000000 +0200 |
| +++ gcc-4.1.2/gcc/config/cris/linux.h 2007-03-04 23:25:07.000000000 +0100 |
| @@ -73,6 +73,25 @@ |
| #undef CRIS_DEFAULT_CPU_VERSION |
| #define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG |
| |
| +#ifdef USE_UCLIBC |
| + |
| +#undef CRIS_SUBTARGET_VERSION |
| +#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-uclibc" |
| + |
| +#undef CRIS_LINK_SUBTARGET_SPEC |
| +#define CRIS_LINK_SUBTARGET_SPEC \ |
| + "-mcrislinux\ |
| + -rpath-link include/asm/../..%s\ |
| + %{shared} %{static}\ |
| + %{symbolic:-Bdynamic} %{shlib:-Bdynamic} %{static:-Bstatic}\ |
| + %{!shared: \ |
| + %{!static: \ |
| + %{rdynamic:-export-dynamic} \ |
| + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}} \ |
| + %{!r:%{O2|O3: --gc-sections}}" |
| + |
| +#else /* USE_UCLIBC */ |
| + |
| #undef CRIS_SUBTARGET_VERSION |
| #define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu" |
| |
| @@ -87,6 +106,8 @@ |
| %{!shared:%{!static:%{rdynamic:-export-dynamic}}}\ |
| %{!r:%{O2|O3: --gc-sections}}" |
| |
| +#endif /* USE_UCLIBC */ |
| + |
| |
| /* Node: Run-time Target */ |
| |
| --- gcc-4.1.2.orig/gcc/config/i386/linux.h 2005-08-10 19:53:01.000000000 +0200 |
| +++ gcc-4.1.2/gcc/config/i386/linux.h 2007-03-04 23:25:07.000000000 +0100 |
| @@ -107,6 +107,11 @@ |
| #define LINK_EMULATION "elf_i386" |
| #define DYNAMIC_LINKER "/lib/ld-linux.so.2" |
| |
| +#if defined USE_UCLIBC |
| +#undef DYNAMIC_LINKER |
| +#define DYNAMIC_LINKER "/lib/ld-uClibc.so.0" |
| +#endif |
| + |
| #undef SUBTARGET_EXTRA_SPECS |
| #define SUBTARGET_EXTRA_SPECS \ |
| { "link_emulation", LINK_EMULATION },\ |
| --- gcc-4.1.2.orig/gcc/config/i386/linux64.h 2005-08-10 19:53:01.000000000 +0200 |
| +++ gcc-4.1.2/gcc/config/i386/linux64.h 2007-03-04 23:25:07.000000000 +0100 |
| @@ -54,14 +54,21 @@ |
| When the -shared link option is used a final link is not being |
| done. */ |
| |
| +#ifdef USE_UCLIBC |
| +#define ELF32_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" |
| +#define ELF64_DYNAMIC_LINKER "/lib/ld64-uClibc.so.0" |
| +#else |
| +#define ELF32_DYNAMIC_LINKER "/lib/ld-linux.so.2" |
| +#define ELF64_DYNAMIC_LINKER "/lib64/ld-linux-x86-64.so.2" |
| +#endif |
| #undef LINK_SPEC |
| #define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} \ |
| %{shared:-shared} \ |
| %{!shared: \ |
| %{!static: \ |
| %{rdynamic:-export-dynamic} \ |
| - %{m32:%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \ |
| - %{!m32:%{!dynamic-linker:-dynamic-linker /lib64/ld-linux-x86-64.so.2}}} \ |
| + %{m32:%{!dynamic-linker:-dynamic-linker " ELF32_DYNAMIC_LINKER "}} \ |
| + %{!m32:%{!dynamic-linker:-dynamic-linker " ELF64_DYNAMIC_LINKER "}}} \ |
| %{static:-static}}" |
| |
| /* Similar to standard Linux, but adding -ffast-math support. */ |
| --- gcc-4.1.2.orig/gcc/config/ia64/linux.h 2006-12-12 16:24:07.000000000 +0100 |
| +++ gcc-4.1.2/gcc/config/ia64/linux.h 2007-03-04 23:25:07.000000000 +0100 |
| @@ -37,13 +37,18 @@ |
| /* Define this for shared library support because it isn't in the main |
| linux.h file. */ |
| |
| +#ifdef USE_UCLIBC |
| +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" |
| +#else |
| +#define ELF_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2" |
| +#endif |
| #undef LINK_SPEC |
| #define LINK_SPEC "\ |
| %{shared:-shared} \ |
| %{!shared: \ |
| %{!static: \ |
| %{rdynamic:-export-dynamic} \ |
| - %{!dynamic-linker:-dynamic-linker /lib/ld-linux-ia64.so.2}} \ |
| + %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \ |
| %{static:-static}}" |
| |
| #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" |
| --- gcc-4.1.2.orig/gcc/config/m68k/linux.h 2005-06-25 03:22:41.000000000 +0200 |
| +++ gcc-4.1.2/gcc/config/m68k/linux.h 2007-03-04 23:25:07.000000000 +0100 |
| @@ -123,12 +123,17 @@ |
| |
| /* If ELF is the default format, we should not use /lib/elf. */ |
| |
| +#ifdef USE_UCLIBC |
| +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" |
| +#else |
| +#define ELF_DYNAMIC_LINKER "/lib/ld.so.1" |
| +#endif |
| #undef LINK_SPEC |
| #define LINK_SPEC "-m m68kelf %{shared} \ |
| %{!shared: \ |
| %{!static: \ |
| %{rdynamic:-export-dynamic} \ |
| - %{!dynamic-linker*:-dynamic-linker /lib/ld.so.1}} \ |
| + %{!dynamic-linker*:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \ |
| %{static}}" |
| |
| /* For compatibility with linux/a.out */ |
| --- gcc-4.1.2.orig/gcc/config/mips/linux.h 2006-12-17 14:57:31.000000000 +0100 |
| +++ gcc-4.1.2/gcc/config/mips/linux.h 2007-03-04 23:25:07.000000000 +0100 |
| @@ -105,6 +105,11 @@ |
| |
| /* Borrowed from sparc/linux.h */ |
| #undef LINK_SPEC |
| +#ifdef USE_UCLIBC |
| +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" |
| +#else |
| +#define ELF_DYNAMIC_LINKER "/lib/ld.so.1" |
| +#endif |
| #define LINK_SPEC \ |
| "%(endian_spec) \ |
| %{shared:-shared} \ |
| @@ -112,7 +117,7 @@ |
| %{!ibcs: \ |
| %{!static: \ |
| %{rdynamic:-export-dynamic} \ |
| - %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \ |
| + %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \ |
| %{static:-static}}}" |
| |
| #undef SUBTARGET_ASM_SPEC |
| --- gcc-4.1.2.orig/gcc/config/pa/pa-linux.h 2007-01-12 03:23:38.000000000 +0100 |
| +++ gcc-4.1.2/gcc/config/pa/pa-linux.h 2007-03-04 23:25:07.000000000 +0100 |
| @@ -49,13 +49,18 @@ |
| /* Define this for shared library support because it isn't in the main |
| linux.h file. */ |
| |
| +#ifdef USE_UCLIBC |
| +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" |
| +#else |
| +#define ELF_DYNAMIC_LINKER "/lib/ld.so.1" |
| +#endif |
| #undef LINK_SPEC |
| #define LINK_SPEC "\ |
| %{shared:-shared} \ |
| %{!shared: \ |
| %{!static: \ |
| %{rdynamic:-export-dynamic} \ |
| - %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \ |
| + %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \ |
| %{static:-static}}" |
| |
| /* glibc's profiling functions don't need gcc to allocate counters. */ |
| --- gcc-4.1.2.orig/gcc/config/rs6000/linux.h 2006-02-10 21:58:33.000000000 +0100 |
| +++ gcc-4.1.2/gcc/config/rs6000/linux.h 2007-03-04 23:25:07.000000000 +0100 |
| @@ -72,7 +72,11 @@ |
| #define LINK_START_DEFAULT_SPEC "%(link_start_linux)" |
| |
| #undef LINK_OS_DEFAULT_SPEC |
| +#ifdef USE_UCLIBC |
| +#define LINK_OS_DEFAULT_SPEC "%(link_os_linux_uclibc)" |
| +#else |
| #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)" |
| +#endif |
| |
| #define LINK_GCC_C_SEQUENCE_SPEC \ |
| "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}" |
| --- gcc-4.1.2.orig/gcc/config/rs6000/sysv4.h 2006-02-10 21:58:33.000000000 +0100 |
| +++ gcc-4.1.2/gcc/config/rs6000/sysv4.h 2007-03-04 23:25:08.000000000 +0100 |
| @@ -866,6 +866,7 @@ |
| mcall-linux : %(link_os_linux) ; \ |
| mcall-gnu : %(link_os_gnu) ; \ |
| mcall-netbsd : %(link_os_netbsd) ; \ |
| + mcall-linux-uclibc : %(link_os_linux_uclibc); \ |
| mcall-openbsd: %(link_os_openbsd) ; \ |
| : %(link_os_default) }" |
| |
| @@ -1043,6 +1044,10 @@ |
| %{rdynamic:-export-dynamic} \ |
| %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}" |
| |
| +#define LINK_OS_LINUX_UCLIBC_SPEC "-m elf32ppclinux %{!shared: %{!static: \ |
| + %{rdynamic:-export-dynamic} \ |
| + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}}" |
| + |
| #if defined(HAVE_LD_EH_FRAME_HDR) |
| # define LINK_EH_SPEC "%{!static:--eh-frame-hdr} " |
| #endif |
| @@ -1209,6 +1214,7 @@ |
| { "link_os_sim", LINK_OS_SIM_SPEC }, \ |
| { "link_os_freebsd", LINK_OS_FREEBSD_SPEC }, \ |
| { "link_os_linux", LINK_OS_LINUX_SPEC }, \ |
| + { "link_os_linux_uclibc", LINK_OS_LINUX_UCLIBC_SPEC }, \ |
| { "link_os_gnu", LINK_OS_GNU_SPEC }, \ |
| { "link_os_netbsd", LINK_OS_NETBSD_SPEC }, \ |
| { "link_os_openbsd", LINK_OS_OPENBSD_SPEC }, \ |
| --- gcc-4.1.2.orig/gcc/config/s390/linux.h 2006-12-12 16:24:07.000000000 +0100 |
| +++ gcc-4.1.2/gcc/config/s390/linux.h 2007-03-04 23:25:08.000000000 +0100 |
| @@ -77,6 +77,13 @@ |
| #define MULTILIB_DEFAULTS { "m31" } |
| #endif |
| |
| +#ifdef USE_UCLIBC |
| +#define ELF31_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" |
| +#define ELF64_DYNAMIC_LINKER "/lib/ld64-uClibc.so.0" |
| +#else |
| +#define ELF31_DYNAMIC_LINKER "/lib/ld.so.1" |
| +#define ELF64_DYNAMIC_LINKER "/lib/ld64.so.1" |
| +#endif |
| #undef LINK_SPEC |
| #define LINK_SPEC \ |
| "%{m31:-m elf_s390}%{m64:-m elf64_s390} \ |
| @@ -86,8 +93,8 @@ |
| %{!static: \ |
| %{rdynamic:-export-dynamic} \ |
| %{!dynamic-linker: \ |
| - %{m31:-dynamic-linker /lib/ld.so.1} \ |
| - %{m64:-dynamic-linker /lib/ld64.so.1}}}}" |
| + %{m31:-dynamic-linker " ELF31_DYNAMIC_LINKER "} \ |
| + %{m64:-dynamic-linker " ELF64_DYNAMIC_LINKER "}}}}" |
| |
| #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" |
| |
| --- gcc-4.1.2.orig/gcc/config/sh/linux.h 2005-06-25 03:22:41.000000000 +0200 |
| +++ gcc-4.1.2/gcc/config/sh/linux.h 2007-03-04 23:25:08.000000000 +0100 |
| @@ -56,12 +56,21 @@ |
| #undef SUBTARGET_LINK_EMUL_SUFFIX |
| #define SUBTARGET_LINK_EMUL_SUFFIX "_linux" |
| #undef SUBTARGET_LINK_SPEC |
| +#ifdef USE_UCLIBC |
| +#define SUBTARGET_LINK_SPEC \ |
| + "%{shared:-shared} \ |
| + %{!static: \ |
| + %{rdynamic:-export-dynamic} \ |
| + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \ |
| + %{static:-static}" |
| +#else |
| #define SUBTARGET_LINK_SPEC \ |
| "%{shared:-shared} \ |
| %{!static: \ |
| %{rdynamic:-export-dynamic} \ |
| %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \ |
| %{static:-static}" |
| +#endif |
| |
| /* Output assembler code to STREAM to call the profiler. */ |
| |
| --- gcc-4.1.2.orig/gcc/config/sparc/linux.h 2006-02-11 09:38:51.000000000 +0100 |
| +++ gcc-4.1.2/gcc/config/sparc/linux.h 2007-03-04 23:25:08.000000000 +0100 |
| @@ -125,6 +125,11 @@ |
| |
| /* If ELF is the default format, we should not use /lib/elf. */ |
| |
| +#ifdef USE_UCLIBC |
| +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" |
| +#else |
| +#define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2" |
| +#endif |
| #undef LINK_SPEC |
| #define LINK_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \ |
| %{!mno-relax:%{!r:-relax}} \ |
| @@ -132,7 +137,7 @@ |
| %{!ibcs: \ |
| %{!static: \ |
| %{rdynamic:-export-dynamic} \ |
| - %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \ |
| + %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \ |
| %{static:-static}}}" |
| |
| /* The sun bundled assembler doesn't accept -Yd, (and neither does gas). |
| --- gcc-4.1.2.orig/gcc/config/sparc/linux64.h 2006-02-11 09:38:51.000000000 +0100 |
| +++ gcc-4.1.2/gcc/config/sparc/linux64.h 2007-03-04 23:25:08.000000000 +0100 |
| @@ -162,12 +162,17 @@ |
| { "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \ |
| { "link_arch", LINK_ARCH_SPEC }, |
| |
| +#ifdef USE_UCLIBC |
| +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0" |
| +#else |
| +#define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2" |
| +#endif |
| #define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \ |
| %{!shared: \ |
| %{!ibcs: \ |
| %{!static: \ |
| %{rdynamic:-export-dynamic} \ |
| - %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \ |
| + %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \ |
| %{static:-static}}} \ |
| " |
| |
| --- gcc-4.1.2.orig/libffi/configure 2007-02-14 06:17:22.000000000 +0100 |
| +++ gcc-4.1.2/libffi/configure 2007-03-04 23:25:08.000000000 +0100 |
| @@ -3457,6 +3457,11 @@ |
| lt_cv_deplibs_check_method=pass_all |
| ;; |
| |
| +linux-uclibc*) |
| + lt_cv_deplibs_check_method=pass_all |
| + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` |
| + ;; |
| + |
| netbsd* | knetbsd*-gnu) |
| if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
| --- gcc-4.1.2.orig/libgfortran/configure 2006-12-06 11:55:37.000000000 +0100 |
| +++ gcc-4.1.2/libgfortran/configure 2007-03-04 23:25:08.000000000 +0100 |
| @@ -3699,6 +3699,11 @@ |
| lt_cv_deplibs_check_method=pass_all |
| ;; |
| |
| +linux-uclibc*) |
| + lt_cv_deplibs_check_method=pass_all |
| + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` |
| + ;; |
| + |
| netbsd* | knetbsd*-gnu) |
| if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
| --- gcc-4.1.2.orig/libjava/configure 2007-02-14 06:17:22.000000000 +0100 |
| +++ gcc-4.1.2/libjava/configure 2007-03-04 23:25:08.000000000 +0100 |
| @@ -5137,6 +5137,11 @@ |
| lt_cv_deplibs_check_method=pass_all |
| ;; |
| |
| +linux-uclibc*) |
| + lt_cv_deplibs_check_method=pass_all |
| + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` |
| + ;; |
| + |
| netbsd* | knetbsd*-gnu) |
| if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
| --- gcc-4.1.2.orig/libmudflap/configure 2005-10-05 01:54:38.000000000 +0200 |
| +++ gcc-4.1.2/libmudflap/configure 2007-03-04 23:25:08.000000000 +0100 |
| @@ -5382,6 +5382,11 @@ |
| lt_cv_deplibs_check_method=pass_all |
| ;; |
| |
| +linux-uclibc*) |
| + lt_cv_deplibs_check_method=pass_all |
| + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` |
| + ;; |
| + |
| netbsd* | knetbsd*-gnu) |
| if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
| --- gcc-4.1.2.orig/libobjc/configure 2007-02-14 06:17:22.000000000 +0100 |
| +++ gcc-4.1.2/libobjc/configure 2007-03-04 23:25:08.000000000 +0100 |
| @@ -3312,6 +3312,11 @@ |
| lt_cv_deplibs_check_method=pass_all |
| ;; |
| |
| +linux-uclibc*) |
| + lt_cv_deplibs_check_method=pass_all |
| + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` |
| + ;; |
| + |
| netbsd* | knetbsd*-gnu) |
| if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
| --- gcc-4.1.2.orig/libtool.m4 2005-07-16 04:30:53.000000000 +0200 |
| +++ gcc-4.1.2/libtool.m4 2007-03-04 23:25:08.000000000 +0100 |
| @@ -743,6 +743,11 @@ |
| lt_cv_deplibs_check_method=pass_all |
| ;; |
| |
| +linux-uclibc*) |
| + lt_cv_deplibs_check_method=pass_all |
| + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` |
| + ;; |
| + |
| netbsd* | knetbsd*-gnu) |
| if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'] |
| --- gcc-4.1.2.orig/ltconfig 2006-07-04 22:30:34.000000000 +0200 |
| +++ gcc-4.1.2/ltconfig 2007-03-04 23:25:08.000000000 +0100 |
| @@ -603,6 +603,7 @@ |
| |
| # Transform linux* to *-*-linux-gnu*, to support old configure scripts. |
| case $host_os in |
| +linux-uclibc*) ;; |
| linux-gnu*) ;; |
| linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` |
| esac |
| @@ -1274,6 +1275,23 @@ |
| dynamic_linker='GNU/Linux ld.so' |
| ;; |
| |
| +linux-uclibc*) |
| + version_type=linux |
| + need_lib_prefix=no |
| + need_version=no |
| + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' |
| + soname_spec='${libname}${release}.so$major' |
| + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| + shlibpath_var=LD_LIBRARY_PATH |
| + shlibpath_overrides_runpath=no |
| + # This implies no fast_install, which is unacceptable. |
| + # Some rework will be needed to allow for fast_install |
| + # before this can be enabled. |
| + hardcode_into_libs=yes |
| + # Assume using the uClibc dynamic linker. |
| + dynamic_linker="uClibc ld.so" |
| + ;; |
| + |
| netbsd*) |
| need_lib_prefix=no |
| need_version=no |
| --- gcc-4.1.2.orig/zlib/configure 2005-09-12 19:02:07.000000000 +0200 |
| +++ gcc-4.1.2/zlib/configure 2007-03-04 23:25:08.000000000 +0100 |
| @@ -3426,6 +3426,11 @@ |
| lt_cv_deplibs_check_method=pass_all |
| ;; |
| |
| +linux-uclibc*) |
| + lt_cv_deplibs_check_method=pass_all |
| + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` |
| + ;; |
| + |
| netbsd* | knetbsd*-gnu) |
| if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
| lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |