mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
simplify uclibc patch so bitrot cant hurt us
This commit is contained in:
parent
abcdf35a86
commit
658d5e8d8f
@ -1,63 +1,38 @@
|
|||||||
diff -urN gcc-4.0.0-dist/boehm-gc/configure gcc-4.0.0/boehm-gc/configure
|
--- gcc-4.0.2/gcc/config.gcc
|
||||||
--- gcc-4.0.0-dist/boehm-gc/configure 2005-04-21 02:04:10.000000000 -0500
|
+++ gcc-4.0.2/gcc/config.gcc
|
||||||
+++ gcc-4.0.0/boehm-gc/configure 2005-04-30 13:22:27.495094224 -0500
|
@@ -1778,7 +1778,7 @@
|
||||||
@@ -4320,6 +4320,11 @@
|
|
||||||
lt_cv_deplibs_check_method=pass_all
|
|
||||||
;;
|
;;
|
||||||
|
sh-*-elf* | sh[12346l]*-*-elf* | sh*-*-kaos* | \
|
||||||
+linux-uclibc*)
|
sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
|
||||||
+ lt_cv_deplibs_check_method=pass_all
|
- sh-*-linux* | sh[346lbe]*-*-linux* | \
|
||||||
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
+ 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"
|
||||||
|
@@ -2234,10 +2234,16 @@
|
||||||
|
*)
|
||||||
|
echo "*** Configuration ${target} not supported" 1>&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
+
|
+
|
||||||
netbsd* | knetbsd*-gnu)
|
+# Rather than hook into each target, just do it after all the linux
|
||||||
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
+# targets have been processed
|
||||||
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
+case ${target} in
|
||||||
diff -urN gcc-4.0.0-dist/configure gcc-4.0.0/configure
|
+*-linux-uclibc*) tm_defines="${tm_defines} USE_UCLIBC"
|
||||||
--- gcc-4.0.0-dist/configure 2005-04-21 02:04:10.000000000 -0500
|
+esac
|
||||||
+++ gcc-4.0.0/configure 2005-04-30 12:27:56.000000000 -0500
|
|
||||||
@@ -1136,7 +1136,7 @@
|
case ${target} in
|
||||||
|
i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1)
|
||||||
|
tmake_file="${tmake_file} i386/t-gmm_malloc"
|
||||||
;;
|
;;
|
||||||
"")
|
--- gcc-4.0.2/gcc/config/alpha/linux-elf.h
|
||||||
case "${target}" in
|
+++ gcc-4.0.2/gcc/config/alpha/linux-elf.h
|
||||||
- *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
|
|
||||||
+ *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu | *-*-linux-uclibc*)
|
|
||||||
# Enable libmudflap by default in GNU and friends.
|
|
||||||
;;
|
|
||||||
*-*-freebsd*)
|
|
||||||
diff -urN gcc-4.0.0-dist/configure.in gcc-4.0.0/configure.in
|
|
||||||
--- gcc-4.0.0-dist/configure.in 2005-04-20 21:45:11.000000000 -0500
|
|
||||||
+++ gcc-4.0.0/configure.in 2005-04-30 12:22:09.000000000 -0500
|
|
||||||
@@ -345,7 +345,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*)
|
|
||||||
diff -urN gcc-4.0.0-dist/contrib/regression/objs-gcc.sh gcc-4.0.0/contrib/regression/objs-gcc.sh
|
|
||||||
--- gcc-4.0.0-dist/contrib/regression/objs-gcc.sh 2002-10-11 15:23:21.000000000 -0500
|
|
||||||
+++ gcc-4.0.0/contrib/regression/objs-gcc.sh 2005-04-30 12:29:58.000000000 -0500
|
|
||||||
@@ -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-3.4.4/gcc/config/alpha/linux-elf.h
|
|
||||||
+++ gcc-3.4.4/gcc/config/alpha/linux-elf.h
|
|
||||||
@@ -27,7 +27,11 @@
|
@@ -27,7 +27,11 @@
|
||||||
#define SUBTARGET_EXTRA_SPECS \
|
#define SUBTARGET_EXTRA_SPECS \
|
||||||
{ "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
|
{ "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
|
||||||
|
|
||||||
+#if defined USE_UCLIBC
|
+#ifdef USE_UCLIBC
|
||||||
+#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
+#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
||||||
+#else
|
+#else
|
||||||
#define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2"
|
#define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2"
|
||||||
@ -65,39 +40,31 @@ diff -urN gcc-4.0.0-dist/contrib/regression/objs-gcc.sh gcc-4.0.0/contrib/regres
|
|||||||
|
|
||||||
#define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \
|
#define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \
|
||||||
%{O*:-O3} %{!O*:-O1} \
|
%{O*:-O3} %{!O*:-O1} \
|
||||||
diff -urN gcc-4.0.0-dist/gcc/config/arm/linux-elf.h gcc-4.0.0/gcc/config/arm/linux-elf.h
|
--- gcc-4.0.2/gcc/config/arm/linux-elf.h
|
||||||
--- gcc-4.0.0-dist/gcc/config/arm/linux-elf.h 2005-03-04 10:14:01.000000000 -0600
|
+++ gcc-4.0.2/gcc/config/arm/linux-elf.h
|
||||||
+++ gcc-4.0.0/gcc/config/arm/linux-elf.h 2005-04-28 20:30:00.000000000 -0500
|
@@ -81,14 +81,19 @@
|
||||||
@@ -82,6 +82,18 @@
|
#define ENDFILE_SPEC \
|
||||||
"%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
|
"%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
|
||||||
|
|
||||||
#undef LINK_SPEC
|
|
||||||
+#ifdef USE_UCLIBC
|
+#ifdef USE_UCLIBC
|
||||||
+#define LINK_SPEC "%{h*} %{version:-v} \
|
+#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
||||||
+ %{b} %{Wl,*:%*} \
|
|
||||||
+ %{static:-Bstatic} \
|
|
||||||
+ %{shared:-shared} \
|
|
||||||
+ %{symbolic:-Bsymbolic} \
|
|
||||||
+ %{rdynamic:-export-dynamic} \
|
|
||||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0} \
|
|
||||||
+ -X \
|
|
||||||
+ %{mbig-endian:-EB}" \
|
|
||||||
+ SUBTARGET_EXTRA_LINK_SPEC
|
|
||||||
+#else
|
+#else
|
||||||
|
+#define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2"
|
||||||
|
+#endif
|
||||||
|
#undef LINK_SPEC
|
||||||
#define LINK_SPEC "%{h*} %{version:-v} \
|
#define LINK_SPEC "%{h*} %{version:-v} \
|
||||||
%{b} %{Wl,*:%*} \
|
%{b} %{Wl,*:%*} \
|
||||||
%{static:-Bstatic} \
|
%{static:-Bstatic} \
|
||||||
@@ -92,6 +104,7 @@
|
%{shared:-shared} \
|
||||||
|
%{symbolic:-Bsymbolic} \
|
||||||
|
%{rdynamic:-export-dynamic} \
|
||||||
|
- %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2} \
|
||||||
|
+ %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "} \
|
||||||
-X \
|
-X \
|
||||||
%{mbig-endian:-EB}" \
|
%{mbig-endian:-EB}" \
|
||||||
SUBTARGET_EXTRA_LINK_SPEC
|
SUBTARGET_EXTRA_LINK_SPEC
|
||||||
+#endif
|
--- gcc-4.0.2/gcc/config/cris/linux.h
|
||||||
|
+++ gcc-4.0.2/gcc/config/cris/linux.h
|
||||||
#define TARGET_OS_CPP_BUILTINS() \
|
|
||||||
do \
|
|
||||||
diff -urN gcc-4.0.0-dist/gcc/config/cris/linux.h gcc-4.0.0/gcc/config/cris/linux.h
|
|
||||||
--- gcc-4.0.0-dist/gcc/config/cris/linux.h 2003-11-28 21:08:09.000000000 -0600
|
|
||||||
+++ gcc-4.0.0/gcc/config/cris/linux.h 2005-04-28 20:30:00.000000000 -0500
|
|
||||||
@@ -79,6 +79,25 @@
|
@@ -79,6 +79,25 @@
|
||||||
#undef CRIS_DEFAULT_CPU_VERSION
|
#undef CRIS_DEFAULT_CPU_VERSION
|
||||||
#define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
|
#define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
|
||||||
@ -133,21 +100,13 @@ diff -urN gcc-4.0.0-dist/gcc/config/cris/linux.h gcc-4.0.0/gcc/config/cris/linux
|
|||||||
|
|
||||||
/* Node: Run-time Target */
|
/* Node: Run-time Target */
|
||||||
|
|
||||||
diff -urN gcc-4.0.0-dist/gcc/config/cris/t-linux-uclibc gcc-4.0.0/gcc/config/cris/t-linux-uclibc
|
--- gcc-4.0.2/gcc/config/i386/linux.h
|
||||||
--- gcc-4.0.0-dist/gcc/config/cris/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
|
+++ gcc-4.0.2/gcc/config/i386/linux.h
|
||||||
+++ gcc-4.0.0/gcc/config/cris/t-linux-uclibc 2005-04-28 20:30:00.000000000 -0500
|
|
||||||
@@ -0,0 +1,3 @@
|
|
||||||
+T_CFLAGS = -DUSE_UCLIBC
|
|
||||||
+TARGET_LIBGCC2_CFLAGS += -fPIC
|
|
||||||
+CRTSTUFF_T_CFLAGS_S = $(TARGET_LIBGCC2_CFLAGS)
|
|
||||||
diff -urN gcc-4.0.0-dist/gcc/config/i386/linux.h gcc-4.0.0/gcc/config/i386/linux.h
|
|
||||||
--- gcc-4.0.0-dist/gcc/config/i386/linux.h 2004-11-27 10:45:14.000000000 -0600
|
|
||||||
+++ gcc-4.0.0/gcc/config/i386/linux.h 2005-04-28 20:30:00.000000000 -0500
|
|
||||||
@@ -107,6 +107,11 @@
|
@@ -107,6 +107,11 @@
|
||||||
#define LINK_EMULATION "elf_i386"
|
#define LINK_EMULATION "elf_i386"
|
||||||
#define DYNAMIC_LINKER "/lib/ld-linux.so.2"
|
#define DYNAMIC_LINKER "/lib/ld-linux.so.2"
|
||||||
|
|
||||||
+#if defined USE_UCLIBC
|
+#ifdef USE_UCLIBC
|
||||||
+#undef DYNAMIC_LINKER
|
+#undef DYNAMIC_LINKER
|
||||||
+#define DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
+#define DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
||||||
+#endif
|
+#endif
|
||||||
@ -155,64 +114,122 @@ diff -urN gcc-4.0.0-dist/gcc/config/i386/linux.h gcc-4.0.0/gcc/config/i386/linux
|
|||||||
#undef SUBTARGET_EXTRA_SPECS
|
#undef SUBTARGET_EXTRA_SPECS
|
||||||
#define SUBTARGET_EXTRA_SPECS \
|
#define SUBTARGET_EXTRA_SPECS \
|
||||||
{ "link_emulation", LINK_EMULATION },\
|
{ "link_emulation", LINK_EMULATION },\
|
||||||
--- gcc-3.4.4/gcc/config/i386/linux64.h
|
--- gcc-4.0.2/gcc/config/i386/linux64.h
|
||||||
+++ gcc-3.4.4/gcc/config/i386/linux64.h
|
+++ gcc-4.0.2/gcc/config/i386/linux64.h
|
||||||
@@ -55,6 +55,15 @@
|
@@ -54,14 +54,21 @@
|
||||||
|
When the -shared link option is used a final link is not being
|
||||||
done. */
|
done. */
|
||||||
|
|
||||||
#undef LINK_SPEC
|
+#ifdef USE_UCLIBC
|
||||||
+#if defined USE_UCLIBC
|
+#define ELF32_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
||||||
+#define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} \
|
+#define ELF64_DYNAMIC_LINKER "/lib/ld64-uClibc.so.0"
|
||||||
+ %{shared:-shared} \
|
|
||||||
+ %{!shared: \
|
|
||||||
+ %{!static: \
|
|
||||||
+ %{rdynamic:-export-dynamic} \
|
|
||||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
|
||||||
+ %{static:-static}}"
|
|
||||||
+#else
|
+#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} \
|
#define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} \
|
||||||
%{shared:-shared} \
|
%{shared:-shared} \
|
||||||
%{!shared: \
|
%{!shared: \
|
||||||
@@ -63,6 +73,7 @@
|
%{!static: \
|
||||||
%{m32:%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
|
%{rdynamic:-export-dynamic} \
|
||||||
%{!m32:%{!dynamic-linker:-dynamic-linker /lib64/ld-linux-x86-64.so.2}}} \
|
- %{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}}"
|
%{static:-static}}"
|
||||||
+#endif
|
|
||||||
|
|
||||||
#define MULTILIB_DEFAULTS { "m64" }
|
#define MULTILIB_DEFAULTS { "m64" }
|
||||||
|
--- gcc-4.0.2/gcc/config/ia64/linux.h
|
||||||
|
+++ gcc-4.0.2/gcc/config/ia64/linux.h
|
||||||
|
@@ -37,13 +37,18 @@
|
||||||
|
/* Define this for shared library support because it isn't in the main
|
||||||
|
linux.h file. */
|
||||||
|
|
||||||
diff -urN gcc-4.0.0-dist/gcc/config/mips/linux.h gcc-4.0.0/gcc/config/mips/linux.h
|
+#ifdef USE_UCLIBC
|
||||||
--- gcc-4.0.0-dist/gcc/config/mips/linux.h 2005-01-25 20:04:46.000000000 -0600
|
+#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
||||||
+++ gcc-4.0.0/gcc/config/mips/linux.h 2005-04-28 20:30:00.000000000 -0500
|
+#else
|
||||||
@@ -108,6 +108,17 @@
|
+#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}}"
|
||||||
|
|
||||||
|
|
||||||
|
--- gcc-4.0.2/gcc/config/m68k/linux.h
|
||||||
|
+++ gcc-4.0.2/gcc/config/m68k/linux.h
|
||||||
|
@@ -127,12 +127,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.0.2/gcc/config/mips/linux.h
|
||||||
|
+++ gcc-4.0.2/gcc/config/mips/linux.h
|
||||||
|
@@ -108,14 +108,19 @@
|
||||||
|
|
||||||
/* Borrowed from sparc/linux.h */
|
/* Borrowed from sparc/linux.h */
|
||||||
#undef LINK_SPEC
|
#undef LINK_SPEC
|
||||||
+#ifdef USE_UCLIBC
|
+#ifdef USE_UCLIBC
|
||||||
+#define LINK_SPEC \
|
+#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
||||||
+ "%(endian_spec) \
|
|
||||||
+ %{shared:-shared} \
|
|
||||||
+ %{!shared: \
|
|
||||||
+ %{!ibcs: \
|
|
||||||
+ %{!static: \
|
|
||||||
+ %{rdynamic:-export-dynamic} \
|
|
||||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
|
||||||
+ %{static:-static}}}"
|
|
||||||
+#else
|
+#else
|
||||||
|
+#define ELF_DYNAMIC_LINKER "/lib/ld.so.1"
|
||||||
|
+#endif
|
||||||
#define LINK_SPEC \
|
#define LINK_SPEC \
|
||||||
"%(endian_spec) \
|
"%(endian_spec) \
|
||||||
%{shared:-shared} \
|
%{shared:-shared} \
|
||||||
@@ -117,6 +128,7 @@
|
%{!shared: \
|
||||||
|
%{!ibcs: \
|
||||||
|
%{!static: \
|
||||||
%{rdynamic:-export-dynamic} \
|
%{rdynamic:-export-dynamic} \
|
||||||
%{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
|
- %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
|
||||||
|
+ %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
|
||||||
%{static:-static}}}"
|
%{static:-static}}}"
|
||||||
+#endif
|
|
||||||
|
|
||||||
#undef SUBTARGET_ASM_SPEC
|
#undef SUBTARGET_ASM_SPEC
|
||||||
#define SUBTARGET_ASM_SPEC "%{mabi=64: -64} %{!mno-abicalls:-KPIC}"
|
--- gcc-4.0.2/gcc/config/pa/pa-linux.h
|
||||||
diff -urN gcc-4.0.0-dist/gcc/config/rs6000/linux.h gcc-4.0.0/gcc/config/rs6000/linux.h
|
+++ gcc-4.0.2/gcc/config/pa/pa-linux.h
|
||||||
--- gcc-4.0.0-dist/gcc/config/rs6000/linux.h 2004-12-01 20:21:28.000000000 -0600
|
@@ -82,13 +82,18 @@
|
||||||
+++ gcc-4.0.0/gcc/config/rs6000/linux.h 2005-04-28 20:30:00.000000000 -0500
|
/* 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.0.2/gcc/config/rs6000/linux.h
|
||||||
|
+++ gcc-4.0.2/gcc/config/rs6000/linux.h
|
||||||
@@ -69,7 +69,11 @@
|
@@ -69,7 +69,11 @@
|
||||||
#define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
|
#define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
|
||||||
|
|
||||||
@ -225,10 +242,9 @@ diff -urN gcc-4.0.0-dist/gcc/config/rs6000/linux.h gcc-4.0.0/gcc/config/rs6000/l
|
|||||||
|
|
||||||
#define LINK_GCC_C_SEQUENCE_SPEC \
|
#define LINK_GCC_C_SEQUENCE_SPEC \
|
||||||
"%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
|
"%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
|
||||||
diff -urN gcc-4.0.0-dist/gcc/config/rs6000/sysv4.h gcc-4.0.0/gcc/config/rs6000/sysv4.h
|
--- gcc-4.0.2/gcc/config/rs6000/sysv4.h
|
||||||
--- gcc-4.0.0-dist/gcc/config/rs6000/sysv4.h 2005-02-15 09:53:52.000000000 -0600
|
+++ gcc-4.0.2/gcc/config/rs6000/sysv4.h
|
||||||
+++ gcc-4.0.0/gcc/config/rs6000/sysv4.h 2005-04-28 20:30:00.000000000 -0500
|
@@ -949,6 +949,7 @@
|
||||||
@@ -956,6 +956,7 @@
|
|
||||||
mcall-linux : %(link_os_linux) ; \
|
mcall-linux : %(link_os_linux) ; \
|
||||||
mcall-gnu : %(link_os_gnu) ; \
|
mcall-gnu : %(link_os_gnu) ; \
|
||||||
mcall-netbsd : %(link_os_netbsd) ; \
|
mcall-netbsd : %(link_os_netbsd) ; \
|
||||||
@ -236,7 +252,7 @@ diff -urN gcc-4.0.0-dist/gcc/config/rs6000/sysv4.h gcc-4.0.0/gcc/config/rs6000/s
|
|||||||
mcall-openbsd: %(link_os_openbsd) ; \
|
mcall-openbsd: %(link_os_openbsd) ; \
|
||||||
: %(link_os_default) }"
|
: %(link_os_default) }"
|
||||||
|
|
||||||
@@ -1134,6 +1135,10 @@
|
@@ -1127,6 +1128,10 @@
|
||||||
%{rdynamic:-export-dynamic} \
|
%{rdynamic:-export-dynamic} \
|
||||||
%{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
|
%{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
|
||||||
|
|
||||||
@ -247,7 +263,7 @@ diff -urN gcc-4.0.0-dist/gcc/config/rs6000/sysv4.h gcc-4.0.0/gcc/config/rs6000/s
|
|||||||
#if defined(HAVE_LD_EH_FRAME_HDR)
|
#if defined(HAVE_LD_EH_FRAME_HDR)
|
||||||
# define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
|
# define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
|
||||||
#endif
|
#endif
|
||||||
@@ -1300,6 +1305,7 @@
|
@@ -1293,6 +1298,7 @@
|
||||||
{ "link_os_sim", LINK_OS_SIM_SPEC }, \
|
{ "link_os_sim", LINK_OS_SIM_SPEC }, \
|
||||||
{ "link_os_freebsd", LINK_OS_FREEBSD_SPEC }, \
|
{ "link_os_freebsd", LINK_OS_FREEBSD_SPEC }, \
|
||||||
{ "link_os_linux", LINK_OS_LINUX_SPEC }, \
|
{ "link_os_linux", LINK_OS_LINUX_SPEC }, \
|
||||||
@ -255,165 +271,99 @@ diff -urN gcc-4.0.0-dist/gcc/config/rs6000/sysv4.h gcc-4.0.0/gcc/config/rs6000/s
|
|||||||
{ "link_os_gnu", LINK_OS_GNU_SPEC }, \
|
{ "link_os_gnu", LINK_OS_GNU_SPEC }, \
|
||||||
{ "link_os_netbsd", LINK_OS_NETBSD_SPEC }, \
|
{ "link_os_netbsd", LINK_OS_NETBSD_SPEC }, \
|
||||||
{ "link_os_openbsd", LINK_OS_OPENBSD_SPEC }, \
|
{ "link_os_openbsd", LINK_OS_OPENBSD_SPEC }, \
|
||||||
diff -urN gcc-4.0.0-dist/gcc/config/sh/linux.h gcc-4.0.0/gcc/config/sh/linux.h
|
--- gcc-4.0.2/gcc/config/s390/linux.h
|
||||||
--- gcc-4.0.0-dist/gcc/config/sh/linux.h 2005-01-25 20:04:48.000000000 -0600
|
+++ gcc-4.0.2/gcc/config/s390/linux.h
|
||||||
+++ gcc-4.0.0/gcc/config/sh/linux.h 2005-04-28 20:30:00.000000000 -0500
|
@@ -77,6 +77,13 @@
|
||||||
@@ -67,12 +67,21 @@
|
#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 TARGET_ASM_FILE_END file_end_indicate_exec_stack
|
||||||
|
--- gcc-4.0.2/gcc/config/sh/linux.h
|
||||||
|
+++ gcc-4.0.2/gcc/config/sh/linux.h
|
||||||
|
@@ -67,11 +67,16 @@
|
||||||
#undef SUBTARGET_LINK_EMUL_SUFFIX
|
#undef SUBTARGET_LINK_EMUL_SUFFIX
|
||||||
#define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
|
#define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
|
||||||
#undef SUBTARGET_LINK_SPEC
|
#undef SUBTARGET_LINK_SPEC
|
||||||
+#ifdef USE_UCLIBC
|
+#ifdef USE_UCLIBC
|
||||||
+#define SUBTARGET_LINK_SPEC \
|
+#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
||||||
+ "%{shared:-shared} \
|
|
||||||
+ %{!static: \
|
|
||||||
+ %{rdynamic:-export-dynamic} \
|
|
||||||
+ %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
|
|
||||||
+ %{static:-static}"
|
|
||||||
+#else
|
+#else
|
||||||
|
+#define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2"
|
||||||
|
+#endif
|
||||||
#define SUBTARGET_LINK_SPEC \
|
#define SUBTARGET_LINK_SPEC \
|
||||||
"%{shared:-shared} \
|
"%{shared:-shared} \
|
||||||
%{!static: \
|
%{!static: \
|
||||||
%{rdynamic:-export-dynamic} \
|
%{rdynamic:-export-dynamic} \
|
||||||
%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
|
- %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
|
||||||
|
+ %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
|
||||||
%{static:-static}"
|
%{static:-static}"
|
||||||
+#endif
|
|
||||||
|
|
||||||
#undef LIB_SPEC
|
#undef LIB_SPEC
|
||||||
#define LIB_SPEC \
|
--- gcc-4.0.2/gcc/config/sparc/linux.h
|
||||||
diff -urN gcc-4.0.0-dist/gcc/config/t-linux-uclibc gcc-4.0.0/gcc/config/t-linux-uclibc
|
+++ gcc-4.0.2/gcc/config/sparc/linux.h
|
||||||
--- gcc-4.0.0-dist/gcc/config/t-linux-uclibc 1969-12-31 18:00:00.000000000 -0600
|
@@ -130,14 +130,19 @@
|
||||||
+++ gcc-4.0.0/gcc/config/t-linux-uclibc 2005-04-28 20:30:00.000000000 -0500
|
|
||||||
@@ -0,0 +1,15 @@
|
|
||||||
+T_CFLAGS = -DUSE_UCLIBC
|
|
||||||
+
|
|
||||||
+# Compile crtbeginS.o and crtendS.o with pic.
|
|
||||||
+CRTSTUFF_T_CFLAGS_S = $(CRTSTUFF_T_CFLAGS) -fPIC
|
|
||||||
+# Compile libgcc2.a with pic.
|
|
||||||
+TARGET_LIBGCC2_CFLAGS = -fPIC
|
|
||||||
+
|
|
||||||
+# Override t-slibgcc-elf-ver to export some libgcc symbols with
|
|
||||||
+# the symbol versions that glibc used.
|
|
||||||
+#SHLIB_MAPFILES += $(srcdir)/config/libgcc-glibc.ver
|
|
||||||
+
|
|
||||||
+# Use unwind-dw2-fde
|
|
||||||
+LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \
|
|
||||||
+ $(srcdir)/unwind-sjlj.c $(srcdir)/gthr-gnat.c $(srcdir)/unwind-c.c
|
|
||||||
+LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h
|
|
||||||
diff -urN gcc-4.0.0-dist/gcc/config.gcc gcc-4.0.0/gcc/config.gcc
|
|
||||||
--- gcc-4.0.0-dist/gcc/config.gcc 2005-03-30 21:17:08.000000000 -0600
|
|
||||||
+++ gcc-4.0.0/gcc/config.gcc 2005-04-28 20:30:00.000000000 -0500
|
|
||||||
@@ -439,7 +439,12 @@
|
|
||||||
case ${enable_threads} in
|
|
||||||
"" | yes | posix) thread_file='posix' ;;
|
|
||||||
esac
|
|
||||||
- tmake_file="t-slibgcc-elf-ver t-linux"
|
|
||||||
+ case ${target} in
|
|
||||||
+ *-*-linux-uclibc*)
|
|
||||||
+ tmake_file="t-slibgcc-elf-ver t-linux-uclibc" ;;
|
|
||||||
+ *)
|
|
||||||
+ tmake_file="t-slibgcc-elf-ver t-linux" ;;
|
|
||||||
+ esac
|
|
||||||
;;
|
|
||||||
*-*-gnu*)
|
|
||||||
# On the Hurd, the setup is just about the same on
|
|
||||||
@@ -744,6 +749,10 @@
|
|
||||||
tmake_file="cris/t-cris cris/t-elfmulti"
|
|
||||||
gas=yes
|
|
||||||
;;
|
|
||||||
+cris-*-linux-uclibc*)
|
|
||||||
+ tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
|
|
||||||
+ tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux-uclibc"
|
|
||||||
+ ;;
|
|
||||||
cris-*-linux*)
|
|
||||||
tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h"
|
|
||||||
# We need to avoid using t-linux, so override default tmake_file
|
|
||||||
@@ -1759,7 +1759,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"
|
|
||||||
diff -urN gcc-4.0.0-dist/libffi/configure gcc-4.0.0/libffi/configure
|
|
||||||
--- gcc-4.0.0-dist/libffi/configure 2004-12-02 05:04:21.000000000 -0600
|
|
||||||
+++ gcc-4.0.0/libffi/configure 2005-04-30 12:18:05.000000000 -0500
|
|
||||||
@@ -3457,6 +3457,11 @@
|
|
||||||
lt_cv_deplibs_check_method=pass_all
|
|
||||||
;;
|
|
||||||
|
|
||||||
+linux-uclibc*)
|
/* If ELF is the default format, we should not use /lib/elf. */
|
||||||
+ 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]+$'
|
|
||||||
diff -urN gcc-4.0.0-dist/libgfortran/configure gcc-4.0.0/libgfortran/configure
|
|
||||||
--- gcc-4.0.0-dist/libgfortran/configure 2005-04-21 02:04:10.000000000 -0500
|
|
||||||
+++ gcc-4.0.0/libgfortran/configure 2005-04-30 12:26:15.000000000 -0500
|
|
||||||
@@ -3684,6 +3684,11 @@
|
|
||||||
lt_cv_deplibs_check_method=pass_all
|
|
||||||
;;
|
|
||||||
|
|
||||||
+linux-uclibc*)
|
+#ifdef USE_UCLIBC
|
||||||
+ lt_cv_deplibs_check_method=pass_all
|
+#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
||||||
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
+#else
|
||||||
+ ;;
|
+#define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2"
|
||||||
+
|
+#endif
|
||||||
netbsd* | knetbsd*-gnu)
|
#undef LINK_SPEC
|
||||||
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
#define LINK_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
|
||||||
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
%{!mno-relax:%{!r:-relax}} \
|
||||||
diff -urN gcc-4.0.0-dist/libjava/configure gcc-4.0.0/libjava/configure
|
%{!shared: \
|
||||||
--- gcc-4.0.0-dist/libjava/configure 2005-04-21 02:04:10.000000000 -0500
|
%{!ibcs: \
|
||||||
+++ gcc-4.0.0/libjava/configure 2005-04-30 12:27:15.000000000 -0500
|
%{!static: \
|
||||||
@@ -4354,6 +4354,11 @@
|
%{rdynamic:-export-dynamic} \
|
||||||
lt_cv_deplibs_check_method=pass_all
|
- %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
|
||||||
;;
|
+ %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
|
||||||
|
%{static:-static}}}"
|
||||||
|
|
||||||
+linux-uclibc*)
|
/* The sun bundled assembler doesn't accept -Yd, (and neither does gas).
|
||||||
+ lt_cv_deplibs_check_method=pass_all
|
--- gcc-4.0.2/gcc/config/sparc/linux64.h
|
||||||
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
+++ gcc-4.0.2/gcc/config/sparc/linux64.h
|
||||||
+ ;;
|
@@ -167,12 +166,17 @@
|
||||||
+
|
{ "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \
|
||||||
netbsd* | knetbsd*-gnu)
|
{ "link_arch", LINK_ARCH_SPEC },
|
||||||
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
|
||||||
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
|
||||||
diff -urN gcc-4.0.0-dist/libmudflap/configure gcc-4.0.0/libmudflap/configure
|
|
||||||
--- gcc-4.0.0-dist/libmudflap/configure 2005-01-02 16:24:50.000000000 -0600
|
|
||||||
+++ gcc-4.0.0/libmudflap/configure 2005-04-30 12:25:24.000000000 -0500
|
|
||||||
@@ -5380,6 +5380,11 @@
|
|
||||||
lt_cv_deplibs_check_method=pass_all
|
|
||||||
;;
|
|
||||||
|
|
||||||
+linux-uclibc*)
|
+#ifdef USE_UCLIBC
|
||||||
+ lt_cv_deplibs_check_method=pass_all
|
+#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
|
||||||
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
+#else
|
||||||
+ ;;
|
+#define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2"
|
||||||
+
|
+#endif
|
||||||
netbsd* | knetbsd*-gnu)
|
#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
|
||||||
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
%{!shared: \
|
||||||
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
|
%{!ibcs: \
|
||||||
diff -urN gcc-4.0.0-dist/libobjc/configure gcc-4.0.0/libobjc/configure
|
%{!static: \
|
||||||
--- gcc-4.0.0-dist/libobjc/configure 2005-04-21 02:04:10.000000000 -0500
|
%{rdynamic:-export-dynamic} \
|
||||||
+++ gcc-4.0.0/libobjc/configure 2005-04-30 12:25:55.000000000 -0500
|
- %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
|
||||||
@@ -3283,6 +3283,11 @@
|
+ %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
|
||||||
lt_cv_deplibs_check_method=pass_all
|
%{static:-static}}} \
|
||||||
;;
|
"
|
||||||
|
|
||||||
+linux-uclibc*)
|
--- gcc-4.0.2/libtool.m4
|
||||||
+ lt_cv_deplibs_check_method=pass_all
|
+++ gcc-4.0.2/libtool.m4
|
||||||
+ 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]+$'
|
|
||||||
diff -urN gcc-4.0.0-dist/libtool.m4 gcc-4.0.0/libtool.m4
|
|
||||||
--- gcc-4.0.0-dist/libtool.m4 2004-11-29 17:45:17.000000000 -0600
|
|
||||||
+++ gcc-4.0.0/libtool.m4 2005-04-30 12:28:32.000000000 -0500
|
|
||||||
@@ -682,6 +682,11 @@
|
@@ -682,6 +682,11 @@
|
||||||
lt_cv_deplibs_check_method=pass_all
|
lt_cv_deplibs_check_method=pass_all
|
||||||
;;
|
;;
|
||||||
@ -426,10 +376,9 @@ diff -urN gcc-4.0.0-dist/libtool.m4 gcc-4.0.0/libtool.m4
|
|||||||
netbsd* | knetbsd*-gnu)
|
netbsd* | knetbsd*-gnu)
|
||||||
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
|
||||||
[lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
|
[lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
|
||||||
diff -urN gcc-4.0.0-dist/ltconfig gcc-4.0.0/ltconfig
|
--- gcc-4.0.2/ltconfig
|
||||||
--- gcc-4.0.0-dist/ltconfig 2004-10-02 11:33:06.000000000 -0500
|
+++ gcc-4.0.2/ltconfig
|
||||||
+++ gcc-4.0.0/ltconfig 2005-04-30 13:26:08.000000000 -0500
|
@@ -603,6 +603,7 @@
|
||||||
@@ -602,6 +602,7 @@
|
|
||||||
|
|
||||||
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
|
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
|
||||||
case $host_os in
|
case $host_os in
|
||||||
@ -437,7 +386,7 @@ diff -urN gcc-4.0.0-dist/ltconfig gcc-4.0.0/ltconfig
|
|||||||
linux-gnu*) ;;
|
linux-gnu*) ;;
|
||||||
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
|
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
|
||||||
esac
|
esac
|
||||||
@@ -1273,6 +1274,23 @@
|
@@ -1274,6 +1275,23 @@
|
||||||
dynamic_linker='GNU/Linux ld.so'
|
dynamic_linker='GNU/Linux ld.so'
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@ -461,9 +410,127 @@ diff -urN gcc-4.0.0-dist/ltconfig gcc-4.0.0/ltconfig
|
|||||||
netbsd*)
|
netbsd*)
|
||||||
need_lib_prefix=no
|
need_lib_prefix=no
|
||||||
need_version=no
|
need_version=no
|
||||||
diff -urN gcc-4.0.0-dist/zlib/configure gcc-4.0.0/zlib/configure
|
--- gcc-4.0.2/libffi/configure
|
||||||
--- gcc-4.0.0-dist/zlib/configure 2004-11-24 16:04:38.000000000 -0600
|
+++ gcc-4.0.2/libffi/configure
|
||||||
+++ gcc-4.0.0/zlib/configure 2005-04-30 12:30:40.000000000 -0500
|
@@ -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.0.2/libgfortran/configure
|
||||||
|
+++ gcc-4.0.2/libgfortran/configure
|
||||||
|
@@ -3681,6 +3681,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.0.2/libjava/configure
|
||||||
|
+++ gcc-4.0.2/libjava/configure
|
||||||
|
@@ -4351,6 +4351,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.0.2/libmudflap/configure
|
||||||
|
+++ gcc-4.0.2/libmudflap/configure
|
||||||
|
@@ -5380,6 +5380,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.0.2/libobjc/configure
|
||||||
|
+++ gcc-4.0.2/libobjc/configure
|
||||||
|
@@ -3283,6 +3283,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.0.2/boehm-gc/configure
|
||||||
|
+++ gcc-4.0.2/boehm-gc/configure
|
||||||
|
@@ -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.0.2/configure
|
||||||
|
+++ gcc-4.0.2/configure
|
||||||
|
@@ -1141,7 +1141,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.0.2/configure.in
|
||||||
|
+++ gcc-4.0.2/configure.in
|
||||||
|
@@ -350,7 +350,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.0.2/contrib/regression/objs-gcc.sh
|
||||||
|
+++ gcc-4.0.2/contrib/regression/objs-gcc.sh
|
||||||
|
@@ -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.0.2/zlib/configure
|
||||||
|
+++ gcc-4.0.2/zlib/configure
|
||||||
@@ -3426,6 +3426,11 @@
|
@@ -3426,6 +3426,11 @@
|
||||||
lt_cv_deplibs_check_method=pass_all
|
lt_cv_deplibs_check_method=pass_all
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user