2
1

100-uclibc-conf.patch 17 KB

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