OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

560 lines
18 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../uclibc/pkg_patch/gcc-100-uclibc-conf.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. --- gcc-4.1.0/gcc/config/t-linux-uclibc
  18. +++ gcc-4.1.0/gcc/config/t-linux-uclibc
  19. @@ -0,0 +1,5 @@
  20. +# Remove glibc specific files added in t-linux
  21. +SHLIB_MAPFILES := $(filter-out $(srcdir)/config/libgcc-glibc.ver, $(SHLIB_MAPFILES))
  22. +
  23. +# Use unwind-dw2-fde instead of unwind-dw2-fde-glibc
  24. +LIB2ADDEH := $(subst unwind-dw2-fde-glibc.c,unwind-dw2-fde.c,$(LIB2ADDEH))
  25. --- gcc-4.1.0/gcc/config.gcc
  26. +++ gcc-4.1.0/gcc/config.gcc
  27. @@ -1887,7 +1887,7 @@ s390x-ibm-tpf*)
  28. ;;
  29. sh-*-elf* | sh[12346l]*-*-elf* | sh*-*-kaos* | \
  30. sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
  31. - sh-*-linux* | sh[346lbe]*-*-linux* | \
  32. + sh*-*-linux* | sh[346lbe]*-*-linux* | \
  33. sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
  34. sh64-*-netbsd* | sh64l*-*-netbsd*)
  35. tmake_file="${tmake_file} sh/t-sh sh/t-elf"
  36. @@ -2341,6 +2341,12 @@ m32c-*-elf*)
  37. ;;
  38. esac
  39. +# Rather than hook into each target, just do it after all the linux
  40. +# targets have been processed
  41. +case ${target} in
  42. +*-linux-uclibc*) tm_defines="${tm_defines} USE_UCLIBC" ; tmake_file="${tmake_file} t-linux-uclibc"
  43. +esac
  44. +
  45. case ${target} in
  46. i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1)
  47. tmake_file="${tmake_file} i386/t-gmm_malloc"
  48. --- gcc-4.1.0/boehm-gc/configure
  49. +++ gcc-4.1.0/boehm-gc/configure
  50. @@ -4320,6 +4320,11 @@ linux-gnu*)
  51. lt_cv_deplibs_check_method=pass_all
  52. ;;
  53. +linux-uclibc*)
  54. + lt_cv_deplibs_check_method=pass_all
  55. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  56. + ;;
  57. +
  58. netbsd* | knetbsd*-gnu)
  59. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  60. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  61. --- gcc-4.1.0/configure
  62. +++ gcc-4.1.0/configure
  63. @@ -1133,7 +1133,7 @@ no)
  64. ;;
  65. "")
  66. case "${target}" in
  67. - *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
  68. + *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu | *-*-linux-uclibc*)
  69. # Enable libmudflap by default in GNU and friends.
  70. ;;
  71. *-*-freebsd*)
  72. --- gcc-4.1.0/configure.in
  73. +++ gcc-4.1.0/configure.in
  74. @@ -341,7 +341,7 @@ no)
  75. ;;
  76. "")
  77. case "${target}" in
  78. - *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
  79. + *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu | *-*-linux-uclibc*)
  80. # Enable libmudflap by default in GNU and friends.
  81. ;;
  82. *-*-freebsd*)
  83. --- gcc-4.1.0/contrib/regression/objs-gcc.sh
  84. +++ gcc-4.1.0/contrib/regression/objs-gcc.sh
  85. @@ -105,6 +105,10 @@ if [ $H_REAL_TARGET = $H_REAL_HOST -a $H
  86. then
  87. make all-gdb all-dejagnu all-ld || exit 1
  88. make install-gdb install-dejagnu install-ld || exit 1
  89. +elif [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-uclibc ]
  90. + then
  91. + make all-gdb all-dejagnu all-ld || exit 1
  92. + make install-gdb install-dejagnu install-ld || exit 1
  93. elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then
  94. make bootstrap || exit 1
  95. make install || exit 1
  96. --- gcc-4.1.0/gcc/config/alpha/linux-elf.h
  97. +++ gcc-4.1.0/gcc/config/alpha/linux-elf.h
  98. @@ -27,7 +27,11 @@ Boston, MA 02110-1301, USA. */
  99. #define SUBTARGET_EXTRA_SPECS \
  100. { "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
  101. +#if defined USE_UCLIBC
  102. +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  103. +#else
  104. #define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2"
  105. +#endif
  106. #define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \
  107. %{O*:-O3} %{!O*:-O1} \
  108. --- gcc-4.1.0/gcc/config/arm/linux-elf.h
  109. +++ gcc-4.1.0/gcc/config/arm/linux-elf.h
  110. @@ -51,7 +51,11 @@
  111. #define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
  112. +#ifdef USE_UCLIBC
  113. +#define LINUX_TARGET_INTERPRETER "/lib/ld-uClibc.so.0"
  114. +#else
  115. #define LINUX_TARGET_INTERPRETER "/lib/ld-linux.so.2"
  116. +#endif
  117. #define LINUX_TARGET_LINK_SPEC "%{h*} %{version:-v} \
  118. %{b} \
  119. --- gcc-4.1.0/gcc/config/cris/linux.h
  120. +++ gcc-4.1.0/gcc/config/cris/linux.h
  121. @@ -73,6 +73,25 @@ Boston, MA 02110-1301, USA. */
  122. #undef CRIS_DEFAULT_CPU_VERSION
  123. #define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
  124. +#ifdef USE_UCLIBC
  125. +
  126. +#undef CRIS_SUBTARGET_VERSION
  127. +#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-uclibc"
  128. +
  129. +#undef CRIS_LINK_SUBTARGET_SPEC
  130. +#define CRIS_LINK_SUBTARGET_SPEC \
  131. + "-mcrislinux\
  132. + -rpath-link include/asm/../..%s\
  133. + %{shared} %{static}\
  134. + %{symbolic:-Bdynamic} %{shlib:-Bdynamic} %{static:-Bstatic}\
  135. + %{!shared: \
  136. + %{!static: \
  137. + %{rdynamic:-export-dynamic} \
  138. + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}} \
  139. + %{!r:%{O2|O3: --gc-sections}}"
  140. +
  141. +#else /* USE_UCLIBC */
  142. +
  143. #undef CRIS_SUBTARGET_VERSION
  144. #define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
  145. @@ -87,6 +106,8 @@ Boston, MA 02110-1301, USA. */
  146. %{!shared:%{!static:%{rdynamic:-export-dynamic}}}\
  147. %{!r:%{O2|O3: --gc-sections}}"
  148. +#endif /* USE_UCLIBC */
  149. +
  150. /* Node: Run-time Target */
  151. --- gcc-4.1.0/gcc/config/i386/linux.h
  152. +++ gcc-4.1.0/gcc/config/i386/linux.h
  153. @@ -107,6 +107,11 @@ Boston, MA 02110-1301, USA. */
  154. #define LINK_EMULATION "elf_i386"
  155. #define DYNAMIC_LINKER "/lib/ld-linux.so.2"
  156. +#if defined USE_UCLIBC
  157. +#undef DYNAMIC_LINKER
  158. +#define DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  159. +#endif
  160. +
  161. #undef SUBTARGET_EXTRA_SPECS
  162. #define SUBTARGET_EXTRA_SPECS \
  163. { "link_emulation", LINK_EMULATION },\
  164. --- gcc-4.1.0/gcc/config/i386/linux64.h
  165. +++ gcc-4.1.0/gcc/config/i386/linux64.h
  166. @@ -54,14 +54,21 @@ Boston, MA 02110-1301, USA. */
  167. When the -shared link option is used a final link is not being
  168. done. */
  169. +#ifdef USE_UCLIBC
  170. +#define ELF32_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  171. +#define ELF64_DYNAMIC_LINKER "/lib/ld64-uClibc.so.0"
  172. +#else
  173. +#define ELF32_DYNAMIC_LINKER "/lib/ld-linux.so.2"
  174. +#define ELF64_DYNAMIC_LINKER "/lib64/ld-linux-x86-64.so.2"
  175. +#endif
  176. #undef LINK_SPEC
  177. #define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} \
  178. %{shared:-shared} \
  179. %{!shared: \
  180. %{!static: \
  181. %{rdynamic:-export-dynamic} \
  182. - %{m32:%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
  183. - %{!m32:%{!dynamic-linker:-dynamic-linker /lib64/ld-linux-x86-64.so.2}}} \
  184. + %{m32:%{!dynamic-linker:-dynamic-linker " ELF32_DYNAMIC_LINKER "}} \
  185. + %{!m32:%{!dynamic-linker:-dynamic-linker " ELF64_DYNAMIC_LINKER "}}} \
  186. %{static:-static}}"
  187. /* Similar to standard Linux, but adding -ffast-math support. */
  188. --- gcc-4.1.0/gcc/config/ia64/linux.h
  189. +++ gcc-4.1.0/gcc/config/ia64/linux.h
  190. @@ -37,13 +37,18 @@ do { \
  191. /* Define this for shared library support because it isn't in the main
  192. linux.h file. */
  193. +#ifdef USE_UCLIBC
  194. +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  195. +#else
  196. +#define ELF_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
  197. +#endif
  198. #undef LINK_SPEC
  199. #define LINK_SPEC "\
  200. %{shared:-shared} \
  201. %{!shared: \
  202. %{!static: \
  203. %{rdynamic:-export-dynamic} \
  204. - %{!dynamic-linker:-dynamic-linker /lib/ld-linux-ia64.so.2}} \
  205. + %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
  206. %{static:-static}}"
  207. --- gcc-4.1.0/gcc/config/m68k/linux.h
  208. +++ gcc-4.1.0/gcc/config/m68k/linux.h
  209. @@ -123,12 +123,17 @@ Boston, MA 02110-1301, USA. */
  210. /* If ELF is the default format, we should not use /lib/elf. */
  211. +#ifdef USE_UCLIBC
  212. +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  213. +#else
  214. +#define ELF_DYNAMIC_LINKER "/lib/ld.so.1"
  215. +#endif
  216. #undef LINK_SPEC
  217. #define LINK_SPEC "-m m68kelf %{shared} \
  218. %{!shared: \
  219. %{!static: \
  220. %{rdynamic:-export-dynamic} \
  221. - %{!dynamic-linker*:-dynamic-linker /lib/ld.so.1}} \
  222. + %{!dynamic-linker*:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
  223. %{static}}"
  224. /* For compatibility with linux/a.out */
  225. --- gcc-4.1.0/gcc/config/mips/linux.h
  226. +++ gcc-4.1.0/gcc/config/mips/linux.h
  227. @@ -105,6 +105,11 @@ Boston, MA 02110-1301, USA. */
  228. /* Borrowed from sparc/linux.h */
  229. #undef LINK_SPEC
  230. +#ifdef USE_UCLIBC
  231. +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  232. +#else
  233. +#define ELF_DYNAMIC_LINKER "/lib/ld.so.1"
  234. +#endif
  235. #define LINK_SPEC \
  236. "%(endian_spec) \
  237. %{shared:-shared} \
  238. @@ -112,7 +117,7 @@ Boston, MA 02110-1301, USA. */
  239. %{!ibcs: \
  240. %{!static: \
  241. %{rdynamic:-export-dynamic} \
  242. - %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
  243. + %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
  244. %{static:-static}}}"
  245. #undef SUBTARGET_ASM_SPEC
  246. --- gcc-4.1.0/gcc/config/pa/pa-linux.h
  247. +++ gcc-4.1.0/gcc/config/pa/pa-linux.h
  248. @@ -49,13 +49,18 @@ Boston, MA 02110-1301, USA. */
  249. /* Define this for shared library support because it isn't in the main
  250. linux.h file. */
  251. +#ifdef USE_UCLIBC
  252. +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  253. +#else
  254. +#define ELF_DYNAMIC_LINKER "/lib/ld.so.1"
  255. +#endif
  256. #undef LINK_SPEC
  257. #define LINK_SPEC "\
  258. %{shared:-shared} \
  259. %{!shared: \
  260. %{!static: \
  261. %{rdynamic:-export-dynamic} \
  262. - %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
  263. + %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
  264. %{static:-static}}"
  265. /* glibc's profiling functions don't need gcc to allocate counters. */
  266. --- gcc-4.1.0/gcc/config/rs6000/linux.h
  267. +++ gcc-4.1.0/gcc/config/rs6000/linux.h
  268. @@ -72,7 +72,11 @@
  269. #define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
  270. #undef LINK_OS_DEFAULT_SPEC
  271. +#ifdef USE_UCLIBC
  272. +#define LINK_OS_DEFAULT_SPEC "%(link_os_linux_uclibc)"
  273. +#else
  274. #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
  275. +#endif
  276. #define LINK_GCC_C_SEQUENCE_SPEC \
  277. "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
  278. --- gcc-4.1.0/gcc/config/rs6000/sysv4.h
  279. +++ gcc-4.1.0/gcc/config/rs6000/sysv4.h
  280. @@ -866,6 +866,7 @@ extern int fixuplabelno;
  281. mcall-linux : %(link_os_linux) ; \
  282. mcall-gnu : %(link_os_gnu) ; \
  283. mcall-netbsd : %(link_os_netbsd) ; \
  284. + mcall-linux-uclibc : %(link_os_linux_uclibc); \
  285. mcall-openbsd: %(link_os_openbsd) ; \
  286. : %(link_os_default) }"
  287. @@ -1043,6 +1044,10 @@ extern int fixuplabelno;
  288. %{rdynamic:-export-dynamic} \
  289. %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
  290. +#define LINK_OS_LINUX_UCLIBC_SPEC "-m elf32ppclinux %{!shared: %{!static: \
  291. + %{rdynamic:-export-dynamic} \
  292. + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}}"
  293. +
  294. #if defined(HAVE_LD_EH_FRAME_HDR)
  295. # define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
  296. #endif
  297. @@ -1209,6 +1214,7 @@ ncrtn.o%s"
  298. { "link_os_sim", LINK_OS_SIM_SPEC }, \
  299. { "link_os_freebsd", LINK_OS_FREEBSD_SPEC }, \
  300. { "link_os_linux", LINK_OS_LINUX_SPEC }, \
  301. + { "link_os_linux_uclibc", LINK_OS_LINUX_UCLIBC_SPEC }, \
  302. { "link_os_gnu", LINK_OS_GNU_SPEC }, \
  303. { "link_os_netbsd", LINK_OS_NETBSD_SPEC }, \
  304. { "link_os_openbsd", LINK_OS_OPENBSD_SPEC }, \
  305. --- gcc-4.1.0/gcc/config/s390/linux.h
  306. +++ gcc-4.1.0/gcc/config/s390/linux.h
  307. @@ -77,6 +77,13 @@ Software Foundation, 51 Franklin Street,
  308. #define MULTILIB_DEFAULTS { "m31" }
  309. #endif
  310. +#ifdef USE_UCLIBC
  311. +#define ELF31_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  312. +#define ELF64_DYNAMIC_LINKER "/lib/ld64-uClibc.so.0"
  313. +#else
  314. +#define ELF31_DYNAMIC_LINKER "/lib/ld.so.1"
  315. +#define ELF64_DYNAMIC_LINKER "/lib/ld64.so.1"
  316. +#endif
  317. #undef LINK_SPEC
  318. #define LINK_SPEC \
  319. "%{m31:-m elf_s390}%{m64:-m elf64_s390} \
  320. @@ -86,8 +93,8 @@ Software Foundation, 51 Franklin Street,
  321. %{!static: \
  322. %{rdynamic:-export-dynamic} \
  323. %{!dynamic-linker: \
  324. - %{m31:-dynamic-linker /lib/ld.so.1} \
  325. - %{m64:-dynamic-linker /lib/ld64.so.1}}}}"
  326. + %{m31:-dynamic-linker " ELF31_DYNAMIC_LINKER "} \
  327. + %{m64:-dynamic-linker " ELF64_DYNAMIC_LINKER "}}}}"
  328. #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
  329. --- gcc-4.1.0/gcc/config/sh/linux.h
  330. +++ gcc-4.1.0/gcc/config/sh/linux.h
  331. @@ -56,12 +56,21 @@ Boston, MA 02110-1301, USA. */
  332. #undef SUBTARGET_LINK_EMUL_SUFFIX
  333. #define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
  334. #undef SUBTARGET_LINK_SPEC
  335. +#ifdef USE_UCLIBC
  336. +#define SUBTARGET_LINK_SPEC \
  337. + "%{shared:-shared} \
  338. + %{!static: \
  339. + %{rdynamic:-export-dynamic} \
  340. + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}} \
  341. + %{static:-static}"
  342. +#else
  343. #define SUBTARGET_LINK_SPEC \
  344. "%{shared:-shared} \
  345. %{!static: \
  346. %{rdynamic:-export-dynamic} \
  347. %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
  348. %{static:-static}"
  349. +#endif
  350. /* Output assembler code to STREAM to call the profiler. */
  351. --- gcc-4.1.0/gcc/config/sparc/linux.h
  352. +++ gcc-4.1.0/gcc/config/sparc/linux.h
  353. @@ -125,6 +125,11 @@ Boston, MA 02110-1301, USA. */
  354. /* If ELF is the default format, we should not use /lib/elf. */
  355. +#ifdef USE_UCLIBC
  356. +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  357. +#else
  358. +#define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2"
  359. +#endif
  360. #undef LINK_SPEC
  361. #define LINK_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
  362. %{!mno-relax:%{!r:-relax}} \
  363. @@ -132,7 +137,7 @@ Boston, MA 02110-1301, USA. */
  364. %{!ibcs: \
  365. %{!static: \
  366. %{rdynamic:-export-dynamic} \
  367. - %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
  368. + %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
  369. %{static:-static}}}"
  370. /* The sun bundled assembler doesn't accept -Yd, (and neither does gas).
  371. --- gcc-4.1.0/gcc/config/sparc/linux64.h
  372. +++ gcc-4.1.0/gcc/config/sparc/linux64.h
  373. @@ -162,12 +162,17 @@ Boston, MA 02110-1301, USA. */
  374. { "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \
  375. { "link_arch", LINK_ARCH_SPEC },
  376. +#ifdef USE_UCLIBC
  377. +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  378. +#else
  379. +#define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2"
  380. +#endif
  381. #define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
  382. %{!shared: \
  383. %{!ibcs: \
  384. %{!static: \
  385. %{rdynamic:-export-dynamic} \
  386. - %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
  387. + %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
  388. %{static:-static}}} \
  389. "
  390. --- gcc-4.1.0/libffi/configure
  391. +++ gcc-4.1.0/libffi/configure
  392. @@ -3457,6 +3457,11 @@ linux-gnu*)
  393. lt_cv_deplibs_check_method=pass_all
  394. ;;
  395. +linux-uclibc*)
  396. + lt_cv_deplibs_check_method=pass_all
  397. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  398. + ;;
  399. +
  400. netbsd* | knetbsd*-gnu)
  401. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  402. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  403. --- gcc-4.1.0/libgfortran/configure
  404. +++ gcc-4.1.0/libgfortran/configure
  405. @@ -3699,6 +3699,11 @@ linux-gnu*)
  406. lt_cv_deplibs_check_method=pass_all
  407. ;;
  408. +linux-uclibc*)
  409. + lt_cv_deplibs_check_method=pass_all
  410. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  411. + ;;
  412. +
  413. netbsd* | knetbsd*-gnu)
  414. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  415. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  416. --- gcc-4.1.0/libjava/configure
  417. +++ gcc-4.1.0/libjava/configure
  418. @@ -5137,6 +5137,11 @@ linux-gnu*)
  419. lt_cv_deplibs_check_method=pass_all
  420. ;;
  421. +linux-uclibc*)
  422. + lt_cv_deplibs_check_method=pass_all
  423. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  424. + ;;
  425. +
  426. netbsd* | knetbsd*-gnu)
  427. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  428. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  429. --- gcc-4.1.0/libmudflap/configure
  430. +++ gcc-4.1.0/libmudflap/configure
  431. @@ -5382,6 +5382,11 @@ linux-gnu*)
  432. lt_cv_deplibs_check_method=pass_all
  433. ;;
  434. +linux-uclibc*)
  435. + lt_cv_deplibs_check_method=pass_all
  436. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  437. + ;;
  438. +
  439. netbsd* | knetbsd*-gnu)
  440. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  441. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  442. --- gcc-4.1.0/libobjc/configure
  443. +++ gcc-4.1.0/libobjc/configure
  444. @@ -3312,6 +3312,11 @@ linux-gnu*)
  445. lt_cv_deplibs_check_method=pass_all
  446. ;;
  447. +linux-uclibc*)
  448. + lt_cv_deplibs_check_method=pass_all
  449. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  450. + ;;
  451. +
  452. netbsd* | knetbsd*-gnu)
  453. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  454. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  455. --- gcc-4.1.0/libtool.m4
  456. +++ gcc-4.1.0/libtool.m4
  457. @@ -743,6 +743,11 @@ linux-gnu*)
  458. lt_cv_deplibs_check_method=pass_all
  459. ;;
  460. +linux-uclibc*)
  461. + lt_cv_deplibs_check_method=pass_all
  462. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  463. + ;;
  464. +
  465. netbsd* | knetbsd*-gnu)
  466. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  467. [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
  468. --- gcc-4.1.0/ltconfig
  469. +++ gcc-4.1.0/ltconfig
  470. @@ -603,6 +603,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-
  471. # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  472. case $host_os in
  473. +linux-uclibc*) ;;
  474. linux-gnu*) ;;
  475. linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  476. esac
  477. @@ -1274,6 +1275,23 @@ linux-gnu*)
  478. dynamic_linker='GNU/Linux ld.so'
  479. ;;
  480. +linux-uclibc*)
  481. + version_type=linux
  482. + need_lib_prefix=no
  483. + need_version=no
  484. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  485. + soname_spec='${libname}${release}.so$major'
  486. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  487. + shlibpath_var=LD_LIBRARY_PATH
  488. + shlibpath_overrides_runpath=no
  489. + # This implies no fast_install, which is unacceptable.
  490. + # Some rework will be needed to allow for fast_install
  491. + # before this can be enabled.
  492. + hardcode_into_libs=yes
  493. + # Assume using the uClibc dynamic linker.
  494. + dynamic_linker="uClibc ld.so"
  495. + ;;
  496. +
  497. netbsd*)
  498. need_lib_prefix=no
  499. need_version=no
  500. --- gcc-4.1.0/zlib/configure
  501. +++ gcc-4.1.0/zlib/configure
  502. @@ -3426,6 +3426,11 @@ linux-gnu*)
  503. lt_cv_deplibs_check_method=pass_all
  504. ;;
  505. +linux-uclibc*)
  506. + lt_cv_deplibs_check_method=pass_all
  507. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  508. + ;;
  509. +
  510. netbsd* | knetbsd*-gnu)
  511. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  512. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'