100-uclibc-conf.patch 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  1. --- gcc-3.4.1/gcc/config/t-linux-uclibc
  2. +++ gcc-3.4.1/gcc/config/t-linux-uclibc
  3. @@ -0,0 +1,5 @@
  4. +# Remove glibc specific files added in t-linux
  5. +SHLIB_MAPFILES := $(filter-out $(srcdir)/config/libgcc-glibc.ver, $(SHLIB_MAPFILES))
  6. +
  7. +# Use unwind-dw2-fde instead of unwind-dw2-fde-glibc
  8. +LIB2ADDEH := $(subst unwind-dw2-fde-glibc.c,unwind-dw2-fde.c,$(LIB2ADDEH))
  9. --- gcc-3.4.1/gcc/config.gcc
  10. +++ gcc-3.4.1/gcc/config.gcc
  11. @@ -2310,10 +2310,16 @@
  12. *)
  13. echo "*** Configuration ${target} not supported" 1>&2
  14. exit 1
  15. ;;
  16. esac
  17. +
  18. +# Rather than hook into each target, just do it after all the linux
  19. +# targets have been processed
  20. +case ${target} in
  21. +*-linux-uclibc*) tm_defines="${tm_defines} USE_UCLIBC" ; tmake_file="${tmake_file} t-linux-uclibc"
  22. +esac
  23. # Support for --with-cpu and related options (and a few unrelated options,
  24. # too).
  25. case ${with_cpu} in
  26. yes | no)
  27. --- gcc-3.4.4/gcc/config/alpha/linux-elf.h
  28. +++ gcc-3.4.4/gcc/config/alpha/linux-elf.h
  29. @@ -27,7 +27,11 @@
  30. #define SUBTARGET_EXTRA_SPECS \
  31. { "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
  32. +#ifdef USE_UCLIBC
  33. +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  34. +#else
  35. #define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2"
  36. +#endif
  37. #define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \
  38. %{O*:-O3} %{!O*:-O1} \
  39. --- gcc-3.4.1-dist/gcc/config/arm/linux-elf.h 2004-01-31 00:18:11.000000000 -0600
  40. +++ gcc-3.4.1/gcc/config/arm/linux-elf.h 2004-08-12 15:54:42.000000000 -0500
  41. @@ -80,14 +80,19 @@
  42. #define ENDFILE_SPEC \
  43. "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
  44. +#ifdef USE_UCLIBC
  45. +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  46. +#else
  47. +#define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2"
  48. +#endif
  49. #undef LINK_SPEC
  50. #define LINK_SPEC "%{h*} %{version:-v} \
  51. %{b} %{Wl,*:%*} \
  52. %{static:-Bstatic} \
  53. %{shared:-shared} \
  54. %{symbolic:-Bsymbolic} \
  55. %{rdynamic:-export-dynamic} \
  56. - %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2} \
  57. + %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "} \
  58. -X \
  59. %{mbig-endian:-EB}" \
  60. SUBTARGET_EXTRA_LINK_SPEC
  61. --- gcc-3.4.1-dist/gcc/config/cris/linux.h 2003-11-28 21:08:09.000000000 -0600
  62. +++ gcc-3.4.1/gcc/config/cris/linux.h 2004-08-12 15:54:43.000000000 -0500
  63. @@ -79,6 +79,25 @@
  64. #undef CRIS_DEFAULT_CPU_VERSION
  65. #define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
  66. +#ifdef USE_UCLIBC
  67. +
  68. +#undef CRIS_SUBTARGET_VERSION
  69. +#define CRIS_SUBTARGET_VERSION " - cris-axis-linux-uclibc"
  70. +
  71. +#undef CRIS_LINK_SUBTARGET_SPEC
  72. +#define CRIS_LINK_SUBTARGET_SPEC \
  73. + "-mcrislinux\
  74. + -rpath-link include/asm/../..%s\
  75. + %{shared} %{static}\
  76. + %{symbolic:-Bdynamic} %{shlib:-Bdynamic} %{static:-Bstatic}\
  77. + %{!shared: \
  78. + %{!static: \
  79. + %{rdynamic:-export-dynamic} \
  80. + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}} \
  81. + %{!r:%{O2|O3: --gc-sections}}"
  82. +
  83. +#else /* USE_UCLIBC */
  84. +
  85. #undef CRIS_SUBTARGET_VERSION
  86. #define CRIS_SUBTARGET_VERSION " - cris-axis-linux-gnu"
  87. @@ -93,6 +112,8 @@
  88. %{!shared:%{!static:%{rdynamic:-export-dynamic}}}\
  89. %{!r:%{O2|O3: --gc-sections}}"
  90. +#endif /* USE_UCLIBC */
  91. +
  92. /* Node: Run-time Target */
  93. --- gcc-3.4.1-dist/gcc/config/i386/linux.h 2003-11-28 21:08:10.000000000 -0600
  94. +++ gcc-3.4.1/gcc/config/i386/linux.h 2004-08-12 15:54:43.000000000 -0500
  95. @@ -110,22 +110,21 @@
  96. #undef LINK_SPEC
  97. #ifdef USE_GNULIBC_1
  98. -#define LINK_SPEC "-m elf_i386 %{shared:-shared} \
  99. - %{!shared: \
  100. - %{!ibcs: \
  101. - %{!static: \
  102. - %{rdynamic:-export-dynamic} \
  103. - %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.1}} \
  104. - %{static:-static}}}"
  105. +#define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.1"
  106. +#else
  107. +#ifdef USE_UCLIBC
  108. +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  109. #else
  110. +#define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2"
  111. +#endif
  112. +#endif
  113. #define LINK_SPEC "-m elf_i386 %{shared:-shared} \
  114. %{!shared: \
  115. %{!ibcs: \
  116. %{!static: \
  117. %{rdynamic:-export-dynamic} \
  118. - %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
  119. + %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
  120. %{static:-static}}}"
  121. -#endif
  122. /* A C statement (sans semicolon) to output to the stdio stream
  123. FILE the assembler definition of uninitialized global DECL named
  124. --- gcc-3.4.4/gcc/config/i386/linux64.h
  125. +++ gcc-3.4.4/gcc/config/i386/linux64.h
  126. @@ -54,14 +54,21 @@
  127. When the -shared link option is used a final link is not being
  128. done. */
  129. +#ifdef USE_UCLIBC
  130. +#define ELF32_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  131. +#define ELF64_DYNAMIC_LINKER "/lib/ld64-uClibc.so.0"
  132. +#else
  133. +#define ELF32_DYNAMIC_LINKER "/lib/ld-linux.so.2"
  134. +#define ELF64_DYNAMIC_LINKER "/lib64/ld-linux-x86-64.so.2"
  135. +#endif
  136. #undef LINK_SPEC
  137. #define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} \
  138. %{shared:-shared} \
  139. %{!shared: \
  140. %{!static: \
  141. %{rdynamic:-export-dynamic} \
  142. - %{m32:%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
  143. - %{!m32:%{!dynamic-linker:-dynamic-linker /lib64/ld-linux-x86-64.so.2}}} \
  144. + %{m32:%{!dynamic-linker:-dynamic-linker " ELF32_DYNAMIC_LINKER "}} \
  145. + %{!m32:%{!dynamic-linker:-dynamic-linker " ELF64_DYNAMIC_LINKER "}}} \
  146. %{static:-static}}"
  147. #define MULTILIB_DEFAULTS { "m64" }
  148. --- gcc-3.4.4/gcc/config/ia64/linux.h
  149. +++ gcc-3.4.4/gcc/config/ia64/linux.h
  150. @@ -37,13 +37,18 @@
  151. /* Define this for shared library support because it isn't in the main
  152. linux.h file. */
  153. +#ifdef USE_UCLIBC
  154. +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  155. +#else
  156. +#define ELF_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
  157. +#endif
  158. #undef LINK_SPEC
  159. #define LINK_SPEC "\
  160. %{shared:-shared} \
  161. %{!shared: \
  162. %{!static: \
  163. %{rdynamic:-export-dynamic} \
  164. - %{!dynamic-linker:-dynamic-linker /lib/ld-linux-ia64.so.2}} \
  165. + %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
  166. %{static:-static}}"
  167. --- gcc-3.4.4/gcc/config/m68k/linux.h
  168. +++ gcc-3.4.4/gcc/config/m68k/linux.h
  169. @@ -131,12 +131,17 @@
  170. /* If ELF is the default format, we should not use /lib/elf. */
  171. +#ifdef USE_UCLIBC
  172. +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  173. +#else
  174. +#define ELF_DYNAMIC_LINKER "/lib/ld.so.1"
  175. +#endif
  176. #undef LINK_SPEC
  177. #define LINK_SPEC "-m m68kelf %{shared} \
  178. %{!shared: \
  179. %{!static: \
  180. %{rdynamic:-export-dynamic} \
  181. - %{!dynamic-linker*:-dynamic-linker /lib/ld.so.1}} \
  182. + %{!dynamic-linker*:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
  183. %{static}}"
  184. /* For compatibility with linux/a.out */
  185. --- gcc-3.4.1-dist/gcc/config/mips/linux.h 2004-06-15 20:42:24.000000000 -0500
  186. +++ gcc-3.4.1/gcc/config/mips/linux.h 2004-08-12 15:54:43.000000000 -0500
  187. @@ -109,14 +109,19 @@
  188. /* Borrowed from sparc/linux.h */
  189. #undef LINK_SPEC
  190. +#ifdef USE_UCLIBC
  191. +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  192. +#else
  193. +#define ELF_DYNAMIC_LINKER "/lib/ld.so.1"
  194. +#endif
  195. #define LINK_SPEC \
  196. "%(endian_spec) \
  197. %{shared:-shared} \
  198. %{!shared: \
  199. %{!ibcs: \
  200. %{!static: \
  201. %{rdynamic:-export-dynamic} \
  202. - %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
  203. + %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
  204. %{static:-static}}}"
  205. #undef SUBTARGET_ASM_SPEC
  206. --- gcc-3.4.4/gcc/config/pa/pa-linux.h
  207. +++ gcc-3.4.4/gcc/config/pa/pa-linux.h
  208. @@ -77,13 +77,18 @@
  209. /* Define this for shared library support because it isn't in the main
  210. linux.h file. */
  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 "\
  218. %{shared:-shared} \
  219. %{!shared: \
  220. %{!static: \
  221. %{rdynamic:-export-dynamic} \
  222. - %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}} \
  223. + %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
  224. %{static:-static}}"
  225. /* glibc's profiling functions don't need gcc to allocate counters. */
  226. --- gcc-3.4.1-dist/gcc/config/rs6000/linux.h 2004-02-25 09:11:19.000000000 -0600
  227. +++ gcc-3.4.1/gcc/config/rs6000/linux.h 2004-08-12 15:54:43.000000000 -0500
  228. @@ -69,7 +69,11 @@
  229. #define LINK_START_DEFAULT_SPEC "%(link_start_linux)"
  230. #undef LINK_OS_DEFAULT_SPEC
  231. +#ifdef USE_UCLIBC
  232. +#define LINK_OS_DEFAULT_SPEC "%(link_os_linux_uclibc)"
  233. +#else
  234. #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
  235. +#endif
  236. #define LINK_GCC_C_SEQUENCE_SPEC \
  237. "%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}"
  238. --- gcc-3.4.1-dist/gcc/config/rs6000/sysv4.h 2004-06-10 01:39:50.000000000 -0500
  239. +++ gcc-3.4.1/gcc/config/rs6000/sysv4.h 2004-08-12 15:54:43.000000000 -0500
  240. @@ -947,6 +947,7 @@
  241. mcall-linux : %(link_os_linux) ; \
  242. mcall-gnu : %(link_os_gnu) ; \
  243. mcall-netbsd : %(link_os_netbsd) ; \
  244. + mcall-linux-uclibc : %(link_os_linux_uclibc); \
  245. mcall-openbsd: %(link_os_openbsd) ; \
  246. : %(link_os_default) }"
  247. @@ -1125,6 +1126,10 @@
  248. %{rdynamic:-export-dynamic} \
  249. %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}}"
  250. +#define LINK_OS_LINUX_UCLIBC_SPEC "-m elf32ppclinux %{!shared: %{!static: \
  251. + %{rdynamic:-export-dynamic} \
  252. + %{!dynamic-linker:-dynamic-linker /lib/ld-uClibc.so.0}}}"
  253. +
  254. #if defined(HAVE_LD_EH_FRAME_HDR)
  255. # define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
  256. #endif
  257. @@ -1291,6 +1296,7 @@
  258. { "link_os_sim", LINK_OS_SIM_SPEC }, \
  259. { "link_os_freebsd", LINK_OS_FREEBSD_SPEC }, \
  260. { "link_os_linux", LINK_OS_LINUX_SPEC }, \
  261. + { "link_os_linux_uclibc", LINK_OS_LINUX_UCLIBC_SPEC }, \
  262. { "link_os_gnu", LINK_OS_GNU_SPEC }, \
  263. { "link_os_netbsd", LINK_OS_NETBSD_SPEC }, \
  264. { "link_os_openbsd", LINK_OS_OPENBSD_SPEC }, \
  265. --- gcc-3.4.4/gcc/config/s390/linux.h
  266. +++ gcc-3.4.4/gcc/config/s390/linux.h
  267. @@ -77,6 +77,13 @@
  268. #define MULTILIB_DEFAULTS { "m31" }
  269. #endif
  270. +#ifdef USE_UCLIBC
  271. +#define ELF31_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  272. +#define ELF64_DYNAMIC_LINKER "/lib/ld64-uClibc.so.0"
  273. +#else
  274. +#define ELF31_DYNAMIC_LINKER "/lib/ld.so.1"
  275. +#define ELF64_DYNAMIC_LINKER "/lib/ld64.so.1"
  276. +#endif
  277. #undef LINK_SPEC
  278. #define LINK_SPEC \
  279. "%{m31:-m elf_s390}%{m64:-m elf64_s390} \
  280. @@ -86,8 +93,8 @@
  281. %{!static: \
  282. %{rdynamic:-export-dynamic} \
  283. %{!dynamic-linker: \
  284. - %{m31:-dynamic-linker /lib/ld.so.1} \
  285. - %{m64:-dynamic-linker /lib/ld64.so.1}}}}"
  286. + %{m31:-dynamic-linker " ELF31_DYNAMIC_LINKER "} \
  287. + %{m64:-dynamic-linker " ELF64_DYNAMIC_LINKER "}}}}"
  288. #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
  289. --- gcc-3.4.1-dist/gcc/config/sh/linux.h 2004-01-11 20:29:13.000000000 -0600
  290. +++ gcc-3.4.1/gcc/config/sh/linux.h 2004-08-12 15:54:43.000000000 -0500
  291. @@ -73,11 +73,16 @@
  292. #undef SUBTARGET_LINK_EMUL_SUFFIX
  293. #define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
  294. #undef SUBTARGET_LINK_SPEC
  295. +#ifdef USE_UCLIBC
  296. +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  297. +#else
  298. +#define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2"
  299. +#endif
  300. #define SUBTARGET_LINK_SPEC \
  301. "%{shared:-shared} \
  302. %{!static: \
  303. %{rdynamic:-export-dynamic} \
  304. - %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
  305. + %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
  306. %{static:-static}"
  307. #undef LIB_SPEC
  308. --- gcc-3.4.4/gcc/config/sparc/linux.h
  309. +++ gcc-3.4.4/gcc/config/sparc/linux.h
  310. @@ -162,13 +162,18 @@
  311. %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.1}} \
  312. %{static:-static}}}"
  313. #else
  314. +#ifdef USE_UCLIBC
  315. +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  316. +#else
  317. +#define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2"
  318. +#endif
  319. #define LINK_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
  320. %{!mno-relax:%{!r:-relax}} \
  321. %{!shared: \
  322. %{!ibcs: \
  323. %{!static: \
  324. %{rdynamic:-export-dynamic} \
  325. - %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
  326. + %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
  327. %{static:-static}}}"
  328. #endif
  329. --- gcc-3.4.4/gcc/config/sparc/linux64.h
  330. +++ gcc-3.4.4/gcc/config/sparc/linux64.h
  331. @@ -167,12 +166,17 @@
  332. { "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \
  333. { "link_arch", LINK_ARCH_SPEC },
  334. +#ifdef USE_UCLIBC
  335. +#define ELF_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
  336. +#else
  337. +#define ELF_DYNAMIC_LINKER "/lib/ld-linux.so.2"
  338. +#endif
  339. #define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,/usr/lib %{shared:-shared} \
  340. %{!shared: \
  341. %{!ibcs: \
  342. %{!static: \
  343. %{rdynamic:-export-dynamic} \
  344. - %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
  345. + %{!dynamic-linker:-dynamic-linker " ELF_DYNAMIC_LINKER "}} \
  346. %{static:-static}}} \
  347. "
  348. --- gcc-3.4.1-dist/libtool.m4 2004-05-18 04:08:37.000000000 -0500
  349. +++ gcc-3.4.1/libtool.m4 2004-08-12 15:54:43.000000000 -0500
  350. @@ -689,6 +689,11 @@
  351. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  352. ;;
  353. +linux-uclibc*)
  354. + lt_cv_deplibs_check_method=pass_all
  355. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  356. + ;;
  357. +
  358. netbsd*)
  359. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  360. [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
  361. --- gcc-3.4.1-dist/ltconfig 2004-03-05 15:05:41.000000000 -0600
  362. +++ gcc-3.4.1/ltconfig 2004-08-12 15:55:48.000000000 -0500
  363. @@ -602,6 +602,7 @@
  364. # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  365. case $host_os in
  366. +linux-uclibc*) ;;
  367. linux-gnu*) ;;
  368. linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  369. esac
  370. @@ -1262,6 +1263,24 @@
  371. dynamic_linker='GNU/Linux ld.so'
  372. ;;
  373. +linux-uclibc*)
  374. + version_type=linux
  375. + need_lib_prefix=no
  376. + need_version=no
  377. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  378. + soname_spec='${libname}${release}.so$major'
  379. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  380. + shlibpath_var=LD_LIBRARY_PATH
  381. + shlibpath_overrides_runpath=no
  382. + # This implies no fast_install, which is unacceptable.
  383. + # Some rework will be needed to allow for fast_install
  384. + # before this can be enabled.
  385. + # Note: copied from linux-gnu, and may not be appropriate.
  386. + hardcode_into_libs=yes
  387. + # Assume using the uClibc dynamic linker.
  388. + dynamic_linker="uClibc ld.so"
  389. + ;;
  390. +
  391. netbsd*)
  392. need_lib_prefix=no
  393. need_version=no
  394. --- gcc-3.4.1-dist/boehm-gc/configure 2004-07-01 14:14:03.000000000 -0500
  395. +++ gcc-3.4.1/boehm-gc/configure 2004-08-12 16:22:57.000000000 -0500
  396. @@ -1947,6 +1947,11 @@
  397. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  398. ;;
  399. +linux-uclibc*)
  400. + lt_cv_deplibs_check_method=pass_all
  401. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  402. + ;;
  403. +
  404. netbsd*)
  405. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  406. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  407. --- gcc-3.4.1-dist/boehm-gc/ltconfig 2002-11-20 09:59:06.000000000 -0600
  408. +++ gcc-3.4.1/boehm-gc/ltconfig 2004-08-12 15:54:42.000000000 -0500
  409. @@ -1981,6 +1981,23 @@
  410. fi
  411. ;;
  412. +linux-uclibc*)
  413. + version_type=linux
  414. + need_lib_prefix=no
  415. + need_version=no
  416. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  417. + soname_spec='${libname}${release}.so$major'
  418. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  419. + shlibpath_var=LD_LIBRARY_PATH
  420. + shlibpath_overrides_runpath=no
  421. + deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  422. + file_magic_cmd=/usr/bin/file
  423. + file_magic_test_file=`echo /lib/libuClibc-*.so`
  424. +
  425. + # Assume using the uClibc dynamic linker.
  426. + dynamic_linker="uClibc ld.so"
  427. + ;;
  428. +
  429. netbsd*)
  430. version_type=sunos
  431. if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then