⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 100-uclibc-conf.patch

📁 最新的文件系统生成工具
💻 PATCH
📖 第 1 页 / 共 4 页
字号:
diff -urN gcc-3.3.3-dist/boehm-gc/config.sub gcc-3.3.3/boehm-gc/config.sub--- gcc-3.3.3-dist/boehm-gc/config.sub	2002-02-11 22:37:53.000000000 -0600+++ gcc-3.3.3/boehm-gc/config.sub	2004-08-12 04:47:51.000000000 -0500@@ -118,7 +118,7 @@ # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in-  nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)+  nto-qnx* | linux-gnu* | linux-uclibc* | storm-chaos* | os2-emx* | windows32-*)     os=-$maybe_os     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`     ;;@@ -1089,7 +1089,8 @@ 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 	      | -chorusos* | -chorusrdb* \ 	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \-	      | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \+	      | -mingw32* | -linux-gnu* | -linux-uclibc* \+	      | -uxpv* | -beos* | -mpeix* | -udk* \ 	      | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \diff -urN gcc-3.3.3-dist/boehm-gc/configure gcc-3.3.3/boehm-gc/configure--- gcc-3.3.3-dist/boehm-gc/configure	2004-02-14 14:34:20.000000000 -0600+++ gcc-3.3.3/boehm-gc/configure	2004-08-12 04:47:51.000000000 -0500@@ -1940,6 +1940,11 @@   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`   ;; +linux-uclibc*)+  lt_cv_deplibs_check_method=pass_all+  lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`+  ;;+ netbsd*)   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-3.3.3-dist/config.sub gcc-3.3.3/config.sub--- gcc-3.3.3-dist/config.sub	2003-01-30 17:25:36.000000000 -0600+++ gcc-3.3.3/config.sub	2004-08-12 04:47:51.000000000 -0500@@ -118,7 +118,7 @@ # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in-  nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)+  nto-qnx* | linux-gnu* | linux-uclibc* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)     os=-$maybe_os     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`     ;;@@ -1112,7 +1112,8 @@ 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 	      | -chorusos* | -chorusrdb* \ 	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \-	      | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \+	      | -mingw32* | -linux-gnu* | -linux-uclibc* \+	      | -uxpv* | -beos* | -mpeix* | -udk* \ 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \diff -urN gcc-3.3.3-dist/gcc/config/arm/linux-elf.h gcc-3.3.3/gcc/config/arm/linux-elf.h--- gcc-3.3.3-dist/gcc/config/arm/linux-elf.h	2003-09-16 10:39:23.000000000 -0500+++ gcc-3.3.3/gcc/config/arm/linux-elf.h	2004-08-12 04:47:51.000000000 -0500@@ -78,6 +78,18 @@   "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"  #undef  LINK_SPEC+#ifdef USE_UCLIBC+#define LINK_SPEC "%{h*} %{version:-v} \+   %{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 #define LINK_SPEC "%{h*} %{version:-v} \    %{b} %{Wl,*:%*} \    %{static:-Bstatic} \@@ -88,6 +100,7 @@    -X \    %{mbig-endian:-EB}" \    SUBTARGET_EXTRA_LINK_SPEC+#endif  #define TARGET_OS_CPP_BUILTINS()		\     do {					\diff -urN gcc-3.3.3-dist/gcc/config/cris/linux.h gcc-3.3.3/gcc/config/cris/linux.h--- gcc-3.3.3-dist/gcc/config/cris/linux.h	2003-03-10 21:01:35.000000000 -0600+++ gcc-3.3.3/gcc/config/cris/linux.h	2004-08-12 04:47:51.000000000 -0500@@ -81,6 +81,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" @@ -95,6 +114,8 @@   %{!shared:%{!static:%{rdynamic:-export-dynamic}}}\   %{!r:%{O2|O3: --gc-sections}}" +#endif  /* USE_UCLIBC */+  /* Node: Run-time Target */ diff -urN gcc-3.3.3-dist/gcc/config/cris/t-linux-uclibc gcc-3.3.3/gcc/config/cris/t-linux-uclibc--- gcc-3.3.3-dist/gcc/config/cris/t-linux-uclibc	1969-12-31 18:00:00.000000000 -0600+++ gcc-3.3.3/gcc/config/cris/t-linux-uclibc	2004-08-12 04:47:51.000000000 -0500@@ -0,0 +1,3 @@+T_CFLAGS = -DUSE_UCLIBC+TARGET_LIBGCC2_CFLAGS += -fPIC+CRTSTUFF_T_CFLAGS_S = $(TARGET_LIBGCC2_CFLAGS)diff -urN gcc-3.3.3-dist/gcc/config/i386/linux.h gcc-3.3.3/gcc/config/i386/linux.h--- gcc-3.3.3-dist/gcc/config/i386/linux.h	2003-11-14 00:46:12.000000000 -0600+++ gcc-3.3.3/gcc/config/i386/linux.h	2004-08-12 04:47:51.000000000 -0500@@ -136,6 +136,15 @@ 	%{static:-static}}}" #endif #else+#if defined USE_UCLIBC+#define LINK_SPEC "-m elf_i386 %{shared:-shared} \+  %{!shared: \+    %{!ibcs: \+      %{!static: \+	%{rdynamic:-export-dynamic} \+	%{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \+	%{static:-static}}}"+#else #define LINK_SPEC "-m elf_i386 %{shared:-shared} \   %{!shared: \     %{!ibcs: \@@ -144,6 +153,7 @@ 	%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \ 	%{static:-static}}}" #endif+#endif  /* A C statement (sans semicolon) to output to the stdio stream    FILE the assembler definition of uninitialized global DECL nameddiff -urN gcc-3.3.3-dist/gcc/config/mips/linux.h gcc-3.3.3/gcc/config/mips/linux.h--- gcc-3.3.3-dist/gcc/config/mips/linux.h	2003-12-23 02:58:00.000000000 -0600+++ gcc-3.3.3/gcc/config/mips/linux.h	2004-08-12 04:47:51.000000000 -0500@@ -175,6 +175,17 @@  /* Borrowed from sparc/linux.h */ #undef LINK_SPEC+#ifdef USE_UCLIBC+#define LINK_SPEC \+ "%(endian_spec) \+  %{shared:-shared} \+  %{!shared: \+    %{!ibcs: \+      %{!static: \+        %{rdynamic:-export-dynamic} \+        %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \+        %{static:-static}}}"+#else #define LINK_SPEC \  "%(endian_spec) \   %{shared:-shared} \@@ -184,6 +195,7 @@         %{rdynamic:-export-dynamic} \         %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \         %{static:-static}}}"+#endif  #undef SUBTARGET_ASM_SPEC #define SUBTARGET_ASM_SPEC "\diff -urN gcc-3.3.3-dist/gcc/config/sh/linux.h gcc-3.3.3/gcc/config/sh/linux.h--- gcc-3.3.3-dist/gcc/config/sh/linux.h	2003-11-06 17:13:33.000000000 -0600+++ gcc-3.3.3/gcc/config/sh/linux.h	2004-08-12 04:47:51.000000000 -0500@@ -44,12 +44,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  /* The GNU C++ standard library requires that these macros be defined.  */ #undef CPLUSPLUS_CPP_SPECdiff -urN gcc-3.3.3-dist/gcc/config/sh/t-linux-uclibc gcc-3.3.3/gcc/config/sh/t-linux-uclibc--- gcc-3.3.3-dist/gcc/config/sh/t-linux-uclibc	1969-12-31 18:00:00.000000000 -0600+++ gcc-3.3.3/gcc/config/sh/t-linux-uclibc	2004-08-12 04:47:51.000000000 -0500@@ -0,0 +1,16 @@+T_CFLAGS = -DUSE_UCLIBC++# Don't run fixproto+STMP_FIXPROTO =++TARGET_LIBGCC2_CFLAGS = -fpic+LIB1ASMFUNCS_CACHE = _ic_invalidate++LIB2FUNCS_EXTRA=++MULTILIB_OPTIONS= $(MULTILIB_ENDIAN) m3e/m4+MULTILIB_DIRNAMES= +MULTILIB_MATCHES = +MULTILIB_EXCEPTIONS=++EXTRA_MULTILIB_PARTS= crtbegin.o crtend.o crtbeginS.o crtendS.odiff -urN gcc-3.3.3-dist/gcc/config/sh/t-sh64-uclibc gcc-3.3.3/gcc/config/sh/t-sh64-uclibc--- gcc-3.3.3-dist/gcc/config/sh/t-sh64-uclibc	1969-12-31 18:00:00.000000000 -0600+++ gcc-3.3.3/gcc/config/sh/t-sh64-uclibc	2004-08-12 04:47:51.000000000 -0500@@ -0,0 +1,13 @@+EXTRA_MULTILIB_PARTS= crtbegin.o crtend.o++LIB1ASMFUNCS = \+  _sdivsi3 _sdivsi3_i4 _udivsi3 _udivsi3_i4 _set_fpscr \+  _shcompact_call_trampoline _shcompact_return_trampoline \+  _shcompact_incoming_args _ic_invalidate _nested_trampoline \+  _push_pop_shmedia_regs \+  _udivdi3 _divdi3 _umoddi3 _moddi3++MULTILIB_OPTIONS = $(MULTILIB_ENDIAN) m5-32media-nofpu/m5-compact/m5-compact-nofpu/m5-64media/m5-64media-nofpu+MULTILIB_DIRNAMES= $(MULTILIB_ENDIAN) nofpu compact nofpu/compact media64 nofpu/media64+MULTILIB_MATCHES=+MULTILIB_EXCEPTIONS=diff -urN gcc-3.3.3-dist/gcc/config/t-linux-uclibc gcc-3.3.3/gcc/config/t-linux-uclibc--- gcc-3.3.3-dist/gcc/config/t-linux-uclibc	1969-12-31 18:00:00.000000000 -0600+++ gcc-3.3.3/gcc/config/t-linux-uclibc	2004-08-12 04:47:51.000000000 -0500@@ -0,0 +1,23 @@+T_CFLAGS = -DUSE_UCLIBC++# Don't run fixproto+STMP_FIXPROTO =++# 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-glibc+#LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-glibc.c \+#  $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c+#LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.h unwind-dw2-fde.c++# Use unwind-dw2-fde+LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde.c \+  $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c+LIB2ADDEHDEP = unwind.inc unwind-dw2-fde.hdiff -urN gcc-3.3.3-dist/gcc/config.gcc gcc-3.3.3/gcc/config.gcc--- gcc-3.3.3-dist/gcc/config.gcc	2004-01-21 00:06:00.000000000 -0600+++ gcc-3.3.3/gcc/config.gcc	2004-08-12 04:47:51.000000000 -0500@@ -697,6 +697,17 @@ 	extra_parts="" 	use_collect2=yes 	;;+arm*-*-linux-uclibc*)		# ARM GNU/Linux with ELF - uClibc+	tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h"+	tmake_file="t-slibgcc-elf-ver t-linux-uclibc arm/t-linux"+	extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"+	gnu_ld=yes+	case x${enable_threads} in+	x | xyes | xpthreads | xposix)+		thread_file='posix'+		;;+	esac+	;; arm*-*-linux*)			# ARM GNU/Linux with ELF 	tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/linux-gas.h arm/linux-elf.h" 	tmake_file="t-slibgcc-elf-ver t-linux arm/t-linux"@@ -772,6 +783,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" 	tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux"@@ -1173,6 +1188,11 @@ 		thread_file='single' 	fi 	;;+i[34567]86-*-linux*uclibc*)	# Intel 80386's running GNU/Linux+				# with ELF format using uClibc+	tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h linux.h i386/linux.h"+	tmake_file="t-slibgcc-elf-ver t-linux-uclibc i386/t-crtstuff"+	;; i[34567]86-*-linux*)	# Intel 80386's running GNU/Linux 			# with ELF format using glibc 2 			# aka GNU/Linux C library 6@@ -1883,6 +1903,16 @@ 	tm_file="elfos.h ${tm_file} mips/netbsd.h" 	tmake_file="${tmake_file} mips/t-netbsd" 	;;+mips*-*-linux-uclibc*)			# Linux MIPS, either endian. uClibc+        tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h"+	case $machine in+        mipsisa32*-*)+                target_cpu_default="MASK_SOFT_FLOAT"+		tm_defines="MIPS_ISA_DEFAULT=32"+                ;;+        esac+	tmake_file="t-slibgcc-elf-ver t-linux-uclibc mips/t-linux"+	;; mips*-*-linux*)				# Linux MIPS, either endian.         tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h" 	case $machine in@@ -2129,6 +2159,11 @@ 	out_file=rs6000/rs6000.c 	tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm" 	;;+powerpc-*-linux-uclibc*)+	tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h"+	out_file=rs6000/rs6000.c+	tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux-uclibc rs6000/t-ppccomm"+	;; powerpc-*-linux*) 	tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h" 	out_file=rs6000/rs6000.c@@ -2313,10 +2348,18 @@ 		tmake_file="${tmake_file} sh/t-le" 		;; 	esac-	tmake_file="${tmake_file} sh/t-linux"+	case $machine in+	*-*-linux-uclibc*) tmake_file="${tmake_file} sh/t-linux-uclibc" ;;+	*) tmake_file="${tmake_file} sh/t-linux" ;;+	esac 	tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/linux.h" 	gas=yes gnu_ld=yes 	case $machine in+	sh64*-*-linux-uclibc*)+		tmake_file="${tmake_file} sh/t-sh64-uclibc"+		tm_file="${tm_file} sh/sh64.h"+		extra_headers="shmedia.h ushmedia.h sshmedia.h"+		;; 	sh64*) 		tmake_file="${tmake_file} sh/t-sh64" 		tm_file="${tm_file} sh/sh64.h"diff -urN gcc-3.3.3-dist/libstdc++-v3/aclocal.m4 gcc-3.3.3/libstdc++-v3/aclocal.m4--- gcc-3.3.3-dist/libstdc++-v3/aclocal.m4	2004-01-12 10:18:44.000000000 -0600+++ gcc-3.3.3/libstdc++-v3/aclocal.m4	2004-08-12 04:47:51.000000000 -0500@@ -1216,6 +1216,9 @@   dnl Default to "generic"   if test x$enable_clocale_flag = xno; then     case x${target_os} in+      xlinux-uclibc*)+	enable_clocale_flag=uclibc+	;;       xlinux* | xgnu*) 	AC_EGREP_CPP([_GLIBCPP_ok], [         #include <features.h>@@ -1339,6 +1342,41 @@       CTIME_CC=config/locale/generic/time_members.cc       CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h       ;;+    xuclibc)+      AC_MSG_RESULT(uclibc)++      # Declare intention to use gettext, and add support for specific+      # languages.+      # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT+      ALL_LINGUAS="de fr"++      # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.+      AC_CHECK_PROG(check_msgfmt, msgfmt, yes, no)+      if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then+	USE_NLS=yes+      fi+      # Export the build objects.+      for ling in $ALL_LINGUAS; do \+        glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \+        glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \+      done+      AC_SUBST(glibcpp_MOFILES)+      AC_SUBST(glibcpp_POFILES)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -