100-uclibc-conf.patch 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608
  1. diff -urN binutils-2.14.90.0.8-001-debian/bfd/config.bfd binutils-2.14.90.0.8/bfd/config.bfd
  2. --- binutils-2.14.90.0.8-001-debian/bfd/config.bfd 2004-01-14 15:07:43.000000000 -0600
  3. +++ binutils-2.14.90.0.8/bfd/config.bfd 2004-02-12 14:18:14.000000000 -0600
  4. @@ -121,7 +121,7 @@
  5. targ_defvec=ecoffalpha_little_vec
  6. targ_selvecs=bfd_elf64_alpha_vec
  7. ;;
  8. - alpha*-*-linux-gnu* | alpha*-*-elf*)
  9. + alpha*-*-linux-gnu* | alpha*-*-linux-uclibc* | alpha*-*-elf*)
  10. targ_defvec=bfd_elf64_alpha_vec
  11. targ_selvecs=ecoffalpha_little_vec
  12. ;;
  13. @@ -131,7 +131,7 @@
  14. alpha*-*-*)
  15. targ_defvec=ecoffalpha_little_vec
  16. ;;
  17. - ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-gnu* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu)
  18. + ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-gnu* | ia64*-*-linux-uclibc* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu)
  19. targ_defvec=bfd_elf64_ia64_little_vec
  20. targ_selvecs="bfd_elf64_ia64_big_vec bfd_efi_app_ia64_vec"
  21. ;;
  22. @@ -208,7 +208,7 @@
  23. targ_defvec=bfd_elf32_littlearm_vec
  24. targ_selvecs=bfd_elf32_bigarm_vec
  25. ;;
  26. - armeb-*-elf | arm*b-*-linux-gnu*)
  27. + armeb-*-elf | arm*b-*-linux-gnu* | arm*b-*-linux-uclibc*)
  28. targ_defvec=bfd_elf32_bigarm_vec
  29. targ_selvecs=bfd_elf32_littlearm_vec
  30. ;;
  31. @@ -216,8 +216,8 @@
  32. targ_defvec=bfd_elf32_littlearm_vec
  33. targ_selvecs=bfd_elf32_bigarm_vec
  34. ;;
  35. - arm-*-elf | arm-*-freebsd* | arm*-*-linux-gnu* | arm*-*-conix* | \
  36. - arm*-*-uclinux* | arm-*-kfreebsd*-gnu | arm-*-vxworks)
  37. + arm-*-elf | arm-*-freebsd* | arm*-*-linux-gnu* | arm*-*-linux-uclibc* | \
  38. + arm*-*-conix* | arm*-*-uclinux* | arm-*-kfreebsd*-gnu | arm-*-vxworks)
  39. targ_defvec=bfd_elf32_littlearm_vec
  40. targ_selvecs=bfd_elf32_bigarm_vec
  41. ;;
  42. @@ -350,7 +350,7 @@
  43. ;;
  44. #ifdef BFD64
  45. - hppa*64*-*-linux-gnu*)
  46. + hppa*64*-*-linux-gnu* | hppa*64*-*-linux-uclibc*)
  47. targ_defvec=bfd_elf64_hppa_linux_vec
  48. targ_selvecs=bfd_elf64_hppa_vec
  49. ;;
  50. @@ -361,7 +361,7 @@
  51. ;;
  52. #endif
  53. - hppa*-*-linux-gnu* | hppa*-*-netbsd*)
  54. + hppa*-*-linux-gnu* | hppa*-*-linux-uclibc* | hppa*-*-netbsd*)
  55. targ_defvec=bfd_elf32_hppa_linux_vec
  56. targ_selvecs=bfd_elf32_hppa_vec
  57. ;;
  58. @@ -483,7 +483,7 @@
  59. targ_selvecs=bfd_elf32_i386_vec
  60. targ_underscore=yes
  61. ;;
  62. - i[3-7]86-*-linux-gnu*)
  63. + i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*)
  64. targ_defvec=bfd_elf32_i386_vec
  65. targ_selvecs="i386linux_vec bfd_efi_app_ia32_vec"
  66. targ64_selvecs=bfd_elf64_x86_64_vec
  67. @@ -497,7 +497,7 @@
  68. targ_defvec=bfd_elf64_x86_64_vec
  69. targ_selvecs="bfd_elf32_i386_vec i386netbsd_vec i386coff_vec bfd_efi_app_ia32_vec"
  70. ;;
  71. - x86_64-*-linux-gnu*)
  72. + x86_64-*-linux-gnu* | x86_64-*-linux-uclibc*)
  73. targ_defvec=bfd_elf64_x86_64_vec
  74. targ_selvecs="bfd_elf32_i386_vec i386linux_vec bfd_efi_app_ia32_vec"
  75. ;;
  76. @@ -672,7 +672,7 @@
  77. targ_selvecs=bfd_elf32_m68k_vec
  78. targ_underscore=yes
  79. ;;
  80. - m68*-*-linux-gnu*)
  81. + m68*-*-linux-gnu* | m68*-*-linux-uclibc*)
  82. targ_defvec=bfd_elf32_m68k_vec
  83. targ_selvecs=m68klinux_vec
  84. ;;
  85. @@ -952,7 +952,8 @@
  86. ;;
  87. #endif
  88. powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \
  89. - powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-rtems* | \
  90. + powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-linux-uclibc* | \
  91. + powerpc-*-rtems* | \
  92. powerpc-*-chorus* | powerpc-*-vxworks* | powerpc-*-windiss*)
  93. targ_defvec=bfd_elf32_powerpc_vec
  94. targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec"
  95. @@ -984,8 +985,8 @@
  96. targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
  97. ;;
  98. powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \
  99. - powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-vxworks* |\
  100. - powerpcle-*-rtems*)
  101. + powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-linux-uclibc* |\
  102. + powerpcle-*-vxworks* | powerpcle-*-rtems*)
  103. targ_defvec=bfd_elf32_powerpcle_vec
  104. targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec"
  105. targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec"
  106. @@ -1141,7 +1142,7 @@
  107. targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec"
  108. targ_underscore=yes
  109. ;;
  110. - sparc-*-linux-gnu*)
  111. + sparc-*-linux-gnu* | sparc-*-linux-uclibc*)
  112. targ_defvec=bfd_elf32_sparc_vec
  113. targ_selvecs="sparclinux_vec bfd_elf64_sparc_vec sunos_big_vec"
  114. ;;
  115. @@ -1188,7 +1189,7 @@
  116. targ_defvec=sunos_big_vec
  117. targ_underscore=yes
  118. ;;
  119. - sparc64-*-linux-gnu*)
  120. + sparc64-*-linux-gnu* | sparc64-*-linux-uclibc*)
  121. targ_defvec=bfd_elf64_sparc_vec
  122. targ_selvecs="bfd_elf32_sparc_vec sparclinux_vec sunos_big_vec"
  123. ;;
  124. diff -urN binutils-2.14.90.0.8-001-debian/bfd/configure binutils-2.14.90.0.8/bfd/configure
  125. --- binutils-2.14.90.0.8-001-debian/bfd/configure 2004-01-14 15:07:43.000000000 -0600
  126. +++ binutils-2.14.90.0.8/bfd/configure 2004-02-12 14:09:10.000000000 -0600
  127. @@ -1699,6 +1699,11 @@
  128. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  129. ;;
  130. +linux-uclibc*)
  131. + lt_cv_deplibs_check_method=pass_all
  132. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  133. + ;;
  134. +
  135. netbsd*)
  136. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  137. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  138. @@ -5278,7 +5283,7 @@
  139. alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
  140. COREFILE=''
  141. ;;
  142. - alpha*-*-linux-gnu*)
  143. + alpha*-*-linux-gnu* | alpha*-*-linux-uclibc*)
  144. COREFILE=trad-core.lo
  145. TRAD_HEADER='"hosts/alphalinux.h"'
  146. ;;
  147. @@ -5338,7 +5343,7 @@
  148. COREFILE=trad-core.lo
  149. TRAD_HEADER='"hosts/i386mach3.h"'
  150. ;;
  151. - i[3-7]86-*-linux-gnu*)
  152. + i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*)
  153. COREFILE=trad-core.lo
  154. TRAD_HEADER='"hosts/i386linux.h"'
  155. ;;
  156. @@ -5388,7 +5393,7 @@
  157. COREFILE=trad-core.lo
  158. TRAD_HEADER='"hosts/hp300bsd.h"'
  159. ;;
  160. - m68*-*-linux-gnu*)
  161. + m68*-*-linux-gnu* | m68*-*-linux-uclibc*)
  162. COREFILE=trad-core.lo
  163. TRAD_HEADER='"hosts/m68klinux.h"'
  164. ;;
  165. diff -urN binutils-2.14.90.0.8-001-debian/bfd/configure.in binutils-2.14.90.0.8/bfd/configure.in
  166. --- binutils-2.14.90.0.8-001-debian/bfd/configure.in 2004-01-14 15:07:43.000000000 -0600
  167. +++ binutils-2.14.90.0.8/bfd/configure.in 2004-02-12 14:09:10.000000000 -0600
  168. @@ -178,7 +178,7 @@
  169. alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
  170. COREFILE=''
  171. ;;
  172. - alpha*-*-linux-gnu*)
  173. + alpha*-*-linux-gnu* | alpha*-*-linux-uclibc*)
  174. COREFILE=trad-core.lo
  175. TRAD_HEADER='"hosts/alphalinux.h"'
  176. ;;
  177. @@ -259,7 +259,7 @@
  178. TRAD_HEADER='"hosts/i386mach3.h"'
  179. ;;
  180. changequote(,)dnl
  181. - i[3-7]86-*-linux-gnu*)
  182. + i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*)
  183. changequote([,])dnl
  184. COREFILE=trad-core.lo
  185. TRAD_HEADER='"hosts/i386linux.h"'
  186. @@ -312,7 +312,7 @@
  187. COREFILE=trad-core.lo
  188. TRAD_HEADER='"hosts/hp300bsd.h"'
  189. ;;
  190. - m68*-*-linux-gnu*)
  191. + m68*-*-linux-gnu* | m68*-*-linux-uclibc*)
  192. COREFILE=trad-core.lo
  193. TRAD_HEADER='"hosts/m68klinux.h"'
  194. ;;
  195. diff -urN binutils-2.14.90.0.8-001-debian/configure binutils-2.14.90.0.8/configure
  196. --- binutils-2.14.90.0.8-001-debian/configure 2004-01-14 15:07:42.000000000 -0600
  197. +++ binutils-2.14.90.0.8/configure 2004-02-12 14:09:10.000000000 -0600
  198. @@ -1273,6 +1273,18 @@
  199. i[3456789]86-*-freebsd* | i[3456789]86-*-kfreebsd*-gnu)
  200. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  201. ;;
  202. + i[3456789]86-*-linux-uclibc)
  203. + # This section makes it possible to build newlib natively on linux.
  204. + # If we are using a cross compiler then don't configure newlib.
  205. + if test x${is_cross_compiler} != xno ; then
  206. + noconfigdirs="$noconfigdirs target-newlib"
  207. + fi
  208. + noconfigdirs="$noconfigdirs target-libgloss"
  209. + # If we are not using a cross compiler, do configure newlib.
  210. + # Note however, that newlib will only be configured in this situation
  211. + # if the --with-newlib option has been given, because otherwise
  212. + # 'target-newlib' will appear in skipdirs.
  213. + ;;
  214. i[3456789]86-*-linux*)
  215. # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
  216. # not build java stuff by default.
  217. diff -urN binutils-2.14.90.0.8-001-debian/configure.in binutils-2.14.90.0.8/configure.in
  218. --- binutils-2.14.90.0.8-001-debian/configure.in 2004-01-14 15:07:42.000000000 -0600
  219. +++ binutils-2.14.90.0.8/configure.in 2004-02-12 14:50:56.000000000 -0600
  220. @@ -512,6 +512,18 @@
  221. i[[3456789]]86-*-freebsd* | i[[3456789]]86-*-kfreebsd*-gnu)
  222. noconfigdirs="$noconfigdirs target-newlib target-libgloss"
  223. ;;
  224. + i[[3456789]]86-*-linux-uclibc)
  225. + # This section makes it possible to build newlib natively on linux.
  226. + # If we are using a cross compiler then don't configure newlib.
  227. + if test x${is_cross_compiler} != xno ; then
  228. + noconfigdirs="$noconfigdirs target-newlib"
  229. + fi
  230. + noconfigdirs="$noconfigdirs target-libgloss"
  231. + # If we are not using a cross compiler, do configure newlib.
  232. + # Note however, that newlib will only be configured in this situation
  233. + # if the --with-newlib option has been given, because otherwise
  234. + # 'target-newlib' will appear in skipdirs.
  235. + ;;
  236. i[[3456789]]86-*-linux*)
  237. # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
  238. # not build java stuff by default.
  239. diff -urN binutils-2.14.90.0.8-001-debian/gas/configure binutils-2.14.90.0.8/gas/configure
  240. --- binutils-2.14.90.0.8-001-debian/gas/configure 2004-01-14 15:07:45.000000000 -0600
  241. +++ binutils-2.14.90.0.8/gas/configure 2004-02-12 14:57:43.000000000 -0600
  242. @@ -3215,6 +3215,11 @@
  243. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  244. ;;
  245. +linux-uclibc*)
  246. + lt_cv_deplibs_check_method=pass_all
  247. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  248. + ;;
  249. +
  250. netbsd*)
  251. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  252. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  253. @@ -4030,6 +4035,7 @@
  254. alpha*-*-osf*) fmt=ecoff ;;
  255. alpha*-*-linuxecoff*) fmt=ecoff ;;
  256. alpha*-*-linux-gnu*) fmt=elf em=linux ;;
  257. + alpha*-*-linux-uclibc*) fmt=elf em=linux ;;
  258. alpha*-*-netbsd*) fmt=elf em=nbsd ;;
  259. alpha*-*-openbsd*) fmt=elf em=obsd ;;
  260. @@ -4046,6 +4052,7 @@
  261. arm*-*-conix*) fmt=elf ;;
  262. arm-*-linux*aout*) fmt=aout em=linux ;;
  263. arm*-*-linux-gnu*) fmt=elf em=linux ;;
  264. + arm*-*-linux-uclibc*) fmt=elf em=linux ;;
  265. arm*-*-uclinux*) fmt=elf em=linux ;;
  266. arm-*-netbsdelf*) fmt=elf em=nbsd ;;
  267. arm-*-*n*bsd*) fmt=aout em=nbsd ;;
  268. @@ -4059,6 +4066,7 @@
  269. avr-*-*) fmt=elf ;;
  270. cris-*-linux-gnu*) fmt=multi bfd_gas=yes em=linux ;;
  271. + cris-*-linux-uclibc*) fmt=multi bfd_gas=yes em=linux ;;
  272. cris-*-*) fmt=multi bfd_gas=yes ;;
  273. d10v-*-*) fmt=elf ;;
  274. @@ -4115,7 +4123,9 @@
  275. i386-*-linux*oldld) fmt=aout em=linux ;;
  276. i386-*-linux*coff*) fmt=coff em=linux ;;
  277. i386-*-linux-gnu*) fmt=elf em=linux ;;
  278. + i386-*-linux-uclibc*) fmt=elf em=linux ;;
  279. x86_64-*-linux-gnu*) fmt=elf em=linux ;;
  280. + x86_64-*-linux-uclibc*) fmt=elf em=linux ;;
  281. i386-*-lynxos*) fmt=coff em=lynx ;;
  282. i386-*-sysv[45]*) fmt=elf ;;
  283. i386-*-solaris*) fmt=elf ;;
  284. @@ -4175,6 +4185,7 @@
  285. ia64-*-elf*) fmt=elf ;;
  286. ia64-*-aix*) fmt=elf em=ia64aix ;;
  287. ia64-*-linux-gnu*) fmt=elf em=linux ;;
  288. + ia64-*-linux-uclibc*) fmt=elf em=linux ;;
  289. ia64-*-hpux*) fmt=elf em=hpux ;;
  290. ia64-*-netbsd*) fmt=elf em=nbsd ;;
  291. @@ -4202,6 +4213,7 @@
  292. m68k-*-hpux*) fmt=hp300 em=hp300 ;;
  293. m68k-*-linux*aout*) fmt=aout em=linux ;;
  294. m68k-*-linux-gnu*) fmt=elf em=linux ;;
  295. + m68k-*-linux-uclibc*) fmt=elf em=linux ;;
  296. m68k-*-uclinux*) fmt=elf ;;
  297. m68k-*-gnu*) fmt=elf ;;
  298. m68k-*-lynxos*) fmt=coff em=lynx ;;
  299. @@ -4265,6 +4277,7 @@
  300. ppc-*-beos*) fmt=coff ;;
  301. ppc-*-*n*bsd* | ppc-*-elf*) fmt=elf ;;
  302. ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;;
  303. + ppc-*-linux-uclibc* | \
  304. ppc-*-linux-gnu*) fmt=elf em=linux
  305. case "$endian" in
  306. big) ;;
  307. @@ -4292,7 +4305,9 @@
  308. ppc-*-kaos*) fmt=elf ;;
  309. s390x-*-linux-gnu*) fmt=elf em=linux ;;
  310. + s390x-*-linux-uclibc*) fmt=elf em=linux ;;
  311. s390-*-linux-gnu*) fmt=elf em=linux ;;
  312. + s390-*-linux-uclibc*) fmt=elf em=linux ;;
  313. sh*-*-linux*) fmt=elf em=linux
  314. case ${cpu} in
  315. @@ -4325,6 +4340,7 @@
  316. sparc-*-coff) fmt=coff ;;
  317. sparc-*-linux*aout*) fmt=aout em=linux ;;
  318. sparc-*-linux-gnu*) fmt=elf em=linux ;;
  319. + sparc-*-linux-uclibc*) fmt=elf em=linux ;;
  320. sparc-*-lynxos*) fmt=coff em=lynx ;;
  321. sparc-fujitsu-none) fmt=aout ;;
  322. sparc-*-elf) fmt=elf ;;
  323. diff -urN binutils-2.14.90.0.8-001-debian/gas/configure.in binutils-2.14.90.0.8/gas/configure.in
  324. --- binutils-2.14.90.0.8-001-debian/gas/configure.in 2004-01-14 15:07:45.000000000 -0600
  325. +++ binutils-2.14.90.0.8/gas/configure.in 2004-02-12 14:21:06.000000000 -0600
  326. @@ -194,6 +194,7 @@
  327. alpha*-*-osf*) fmt=ecoff ;;
  328. alpha*-*-linuxecoff*) fmt=ecoff ;;
  329. alpha*-*-linux-gnu*) fmt=elf em=linux ;;
  330. + alpha*-*-linux-uclibc*) fmt=elf em=linux ;;
  331. alpha*-*-netbsd*) fmt=elf em=nbsd ;;
  332. alpha*-*-openbsd*) fmt=elf em=obsd ;;
  333. @@ -210,6 +211,7 @@
  334. arm*-*-conix*) fmt=elf ;;
  335. arm-*-linux*aout*) fmt=aout em=linux ;;
  336. arm*-*-linux-gnu*) fmt=elf em=linux ;;
  337. + arm*-*-linux-uclibc*) fmt=elf em=linux ;;
  338. arm*-*-uclinux*) fmt=elf em=linux ;;
  339. arm-*-netbsdelf*) fmt=elf em=nbsd ;;
  340. arm-*-*n*bsd*) fmt=aout em=nbsd ;;
  341. @@ -223,6 +225,7 @@
  342. avr-*-*) fmt=elf ;;
  343. cris-*-linux-gnu*) fmt=multi bfd_gas=yes em=linux ;;
  344. + cris-*-linux-uclibc*) fmt=multi bfd_gas=yes em=linux ;;
  345. cris-*-*) fmt=multi bfd_gas=yes ;;
  346. d10v-*-*) fmt=elf ;;
  347. @@ -279,7 +282,9 @@
  348. i386-*-linux*oldld) fmt=aout em=linux ;;
  349. i386-*-linux*coff*) fmt=coff em=linux ;;
  350. i386-*-linux-gnu*) fmt=elf em=linux ;;
  351. + i386-*-linux-uclibc*) fmt=elf em=linux ;;
  352. x86_64-*-linux-gnu*) fmt=elf em=linux ;;
  353. + x86_64-*-linux-uclibc*) fmt=elf em=linux ;;
  354. i386-*-lynxos*) fmt=coff em=lynx ;;
  355. changequote(,)dnl
  356. i386-*-sysv[45]*) fmt=elf ;;
  357. @@ -332,6 +337,7 @@
  358. ia64-*-elf*) fmt=elf ;;
  359. ia64-*-aix*) fmt=elf em=ia64aix ;;
  360. ia64-*-linux-gnu*) fmt=elf em=linux ;;
  361. + ia64-*-linux-uclibc*) fmt=elf em=linux ;;
  362. ia64-*-hpux*) fmt=elf em=hpux ;;
  363. ia64-*-netbsd*) fmt=elf em=nbsd ;;
  364. @@ -359,6 +365,7 @@
  365. m68k-*-hpux*) fmt=hp300 em=hp300 ;;
  366. m68k-*-linux*aout*) fmt=aout em=linux ;;
  367. m68k-*-linux-gnu*) fmt=elf em=linux ;;
  368. + m68k-*-linux-uclibc*) fmt=elf em=linux ;;
  369. m68k-*-uclinux*) fmt=elf ;;
  370. m68k-*-gnu*) fmt=elf ;;
  371. m68k-*-lynxos*) fmt=coff em=lynx ;;
  372. @@ -419,6 +426,7 @@
  373. ppc-*-beos*) fmt=coff ;;
  374. ppc-*-*n*bsd* | ppc-*-elf*) fmt=elf ;;
  375. ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;;
  376. + ppc-*-linux-uclibc* | \
  377. ppc-*-linux-gnu*) fmt=elf em=linux
  378. case "$endian" in
  379. big) ;;
  380. @@ -439,7 +447,9 @@
  381. ppc-*-kaos*) fmt=elf ;;
  382. s390x-*-linux-gnu*) fmt=elf em=linux ;;
  383. + s390x-*-linux-uclibc*) fmt=elf em=linux ;;
  384. s390-*-linux-gnu*) fmt=elf em=linux ;;
  385. + s390-*-linux-uclibc*) fmt=elf em=linux ;;
  386. sh*-*-linux*) fmt=elf em=linux
  387. case ${cpu} in
  388. @@ -472,6 +482,7 @@
  389. sparc-*-coff) fmt=coff ;;
  390. sparc-*-linux*aout*) fmt=aout em=linux ;;
  391. sparc-*-linux-gnu*) fmt=elf em=linux ;;
  392. + sparc-*-linux-uclibc*) fmt=elf em=linux ;;
  393. sparc-*-lynxos*) fmt=coff em=lynx ;;
  394. sparc-fujitsu-none) fmt=aout ;;
  395. sparc-*-elf) fmt=elf ;;
  396. diff -urN binutils-2.14.90.0.8-001-debian/ld/configure binutils-2.14.90.0.8/ld/configure
  397. --- binutils-2.14.90.0.8-001-debian/ld/configure 2003-05-05 16:46:49.000000000 -0500
  398. +++ binutils-2.14.90.0.8/ld/configure 2004-02-12 14:09:10.000000000 -0600
  399. @@ -1578,6 +1578,11 @@
  400. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  401. ;;
  402. +linux-uclibc*)
  403. + lt_cv_deplibs_check_method=pass_all
  404. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  405. + ;;
  406. +
  407. netbsd*)
  408. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  409. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  410. diff -urN binutils-2.14.90.0.8-001-debian/ld/configure.tgt binutils-2.14.90.0.8/ld/configure.tgt
  411. --- binutils-2.14.90.0.8-001-debian/ld/configure.tgt 2004-01-14 15:07:52.000000000 -0600
  412. +++ binutils-2.14.90.0.8/ld/configure.tgt 2004-02-12 14:14:12.000000000 -0600
  413. @@ -30,6 +30,7 @@
  414. targ_extra_emuls="criself crislinux"
  415. targ_extra_libpath=$targ_extra_emuls ;;
  416. cris-*-linux-gnu*) targ_emul=crislinux ;;
  417. +cris-*-linux-uclibc*) targ_emul=crislinux ;;
  418. cris-*-*) targ_emul=criself
  419. targ_extra_emuls="crisaout crislinux"
  420. targ_extra_libpath=$targ_extra_emuls ;;
  421. @@ -59,14 +60,16 @@
  422. tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/aout//'`
  423. tdir_sun4=sparc-sun-sunos4
  424. ;;
  425. -sparc64-*-linux-gnu*) targ_emul=elf64_sparc
  426. +sparc64-*-linux-gnu* | sparc64-*-linux-uclibc*) \
  427. + targ_emul=elf64_sparc
  428. targ_extra_emuls="elf32_sparc sparclinux sun4"
  429. targ_extra_libpath=elf32_sparc
  430. tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'`
  431. tdir_sparclinux=${tdir_elf32_sparc}aout
  432. tdir_sun4=sparc-sun-sunos4
  433. ;;
  434. -sparc*-*-linux-gnu*) targ_emul=elf32_sparc
  435. +sparc*-*-linux-gnu* | sparc*-*-linux-uclibc*) \
  436. + targ_emul=elf32_sparc
  437. targ_extra_emuls="sparclinux elf64_sparc sun4"
  438. targ_extra_libpath=elf64_sparc
  439. tdir_sparclinux=${targ_alias}aout
  440. @@ -128,7 +131,7 @@
  441. m68*-ericsson-ose) targ_emul=sun3 ;;
  442. m68*-apple-aux*) targ_emul=m68kaux ;;
  443. *-tandem-none) targ_emul=st2000 ;;
  444. -i370-*-elf* | i370-*-linux-gnu*) targ_emul=elf32i370 ;;
  445. +i370-*-elf* | i370-*-linux-gnu* | i370-*-linux-uclibc*) targ_emul=elf32i370 ;;
  446. i[3-7]86-*-nto-qnx*) targ_emul=i386nto ;;
  447. i[3-7]86-*-vsta) targ_emul=vsta ;;
  448. i[3-7]86-go32-rtems*) targ_emul=i386go32 ;;
  449. @@ -152,14 +155,16 @@
  450. tdir_elf_i386=`echo ${targ_alias} | sed -e 's/aout//'`
  451. ;;
  452. i[3-7]86-*-linux*oldld) targ_emul=i386linux; targ_extra_emuls=elf_i386 ;;
  453. -i[3-7]86-*-linux-gnu*) targ_emul=elf_i386
  454. +i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*) \
  455. + targ_emul=elf_i386
  456. targ_extra_emuls=i386linux
  457. if test x${want64} = xtrue; then
  458. targ_extra_emuls="$targ_extra_emuls elf_x86_64"
  459. fi
  460. tdir_i386linux=${targ_alias}aout
  461. ;;
  462. -x86_64-*-linux-gnu*) targ_emul=elf_x86_64
  463. +x86_64-*-linux-gnu* | x86_64-*-linux-uclibc*) \
  464. + targ_emul=elf_x86_64
  465. targ_extra_emuls="elf_i386 i386linux"
  466. targ_extra_libpath=elf_i386
  467. tdir_i386linux=`echo ${targ_alias}aout | sed -e 's/x86_64/i386/'`
  468. @@ -259,10 +264,13 @@
  469. arm9e-*-elf) targ_emul=armelf ;;
  470. arm-*-oabi) targ_emul=armelf_oabi ;;
  471. arm*b-*-linux-gnu*) targ_emul=armelfb_linux; targ_extra_emuls=armelfb ;;
  472. +arm*b-*-linux-uclibc*) targ_emul=armelfb_linux; targ_extra_emuls=armelfb ;;
  473. arm*-*-linux-gnu*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
  474. +arm*-*-linux-uclibc*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
  475. arm*-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
  476. arm*-*-conix*) targ_emul=armelf ;;
  477. -thumb-*-linux-gnu* | thumb-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
  478. +thumb-*-linux-gnu* | thumb-*-linux-uclibc* | thumb-*-uclinux*) \
  479. + targ_emul=armelf_linux; targ_extra_emuls=armelf ;;
  480. strongarm-*-coff) targ_emul=armcoff ;;
  481. strongarm-*-elf) targ_emul=armelf ;;
  482. strongarm-*-kaos*) targ_emul=armelf ;;
  483. @@ -363,7 +371,8 @@
  484. targ_extra_emuls=m68kelf
  485. tdir_m68kelf=`echo ${targ_alias} | sed -e 's/aout//'`
  486. ;;
  487. -m68k-*-linux-gnu*) targ_emul=m68kelf
  488. +m68k-*-linux-gnu* | m68k-*-linux-uclibc*) \
  489. + targ_emul=m68kelf
  490. targ_extra_emuls=m68klinux
  491. tdir_m68klinux=`echo ${targ_alias} | sed -e 's/linux/linuxaout/'`
  492. ;;
  493. @@ -380,9 +389,9 @@
  494. m68*-*-psos*) targ_emul=m68kpsos ;;
  495. m68*-*-rtemscoff*) targ_emul=m68kcoff ;;
  496. m68*-*-rtems*) targ_emul=m68kelf ;;
  497. -hppa*64*-*-linux-gnu*) targ_emul=hppa64linux ;;
  498. +hppa*64*-*-linux-gnu* | hppa*64*-*-linux-uclibc*) targ_emul=hppa64linux ;;
  499. hppa*64*-*) targ_emul=elf64hppa ;;
  500. -hppa*-*-linux-gnu*) targ_emul=hppalinux ;;
  501. +hppa*-*-linux-gnu* | hppa*-*-linux-uclibc*) targ_emul=hppalinux ;;
  502. hppa*-*-*elf*) targ_emul=hppaelf ;;
  503. hppa*-*-lites*) targ_emul=hppaelf ;;
  504. hppa*-*-netbsd*) targ_emul=hppanbsd ;;
  505. @@ -429,16 +438,20 @@
  506. mips*-*-vxworks*) targ_emul=elf32ebmip
  507. targ_extra_emuls="elf32elmip" ;;
  508. mips*-*-windiss) targ_emul=elf32mipswindiss ;;
  509. -mips64*el-*-linux-gnu*) targ_emul=elf32ltsmipn32
  510. +mips64*el-*-linux-gnu* | mips64*el-*-linux-uclibc*) \
  511. + targ_emul=elf32ltsmipn32
  512. targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip"
  513. ;;
  514. -mips64*-*-linux-gnu*) targ_emul=elf32btsmipn32
  515. +mips64*-*-linux-gnu* | mips64*-*-linux-uclibc*) \
  516. + targ_emul=elf32btsmipn32
  517. targ_extra_emuls="elf32ltsmipn32 elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip"
  518. ;;
  519. -mips*el-*-linux-gnu*) targ_emul=elf32ltsmip
  520. +mips*el-*-linux-gnu* | mips*el-*-linux-uclibc*) \
  521. + targ_emul=elf32ltsmip
  522. targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip"
  523. ;;
  524. -mips*-*-linux-gnu*) targ_emul=elf32btsmip
  525. +mips*-*-linux-gnu* | mips*-*-linux-uclibc*) \
  526. + targ_emul=elf32btsmip
  527. targ_extra_emuls="elf32ltsmip elf32btsmipn32 elf64btsmip elf32ltsmipn32 elf64ltsmip"
  528. ;;
  529. mips*-*-lnews*) targ_emul=mipslnews ;;
  530. @@ -461,6 +474,10 @@
  531. alpha*-*-linux-gnu*) targ_emul=elf64alpha targ_extra_emuls=alpha
  532. tdir_alpha=`echo ${targ_alias} | sed -e 's/linux/linuxecoff/'`
  533. ;;
  534. +alpha*-*-linux-uclibc*) targ_emul=elf64alpha targ_extra_emuls=alpha
  535. + # The following needs to be checked...
  536. + tdir_alpha=`echo ${targ_alias} | sed -e 's/linux/linuxecoff/'`
  537. + ;;
  538. alpha*-*-osf*) targ_emul=alpha ;;
  539. alpha*-*-gnu*) targ_emul=elf64alpha ;;
  540. alpha*-*-netware*) targ_emul=alpha ;;
  541. diff -urN binutils-2.14.90.0.8-001-debian/libtool.m4 binutils-2.14.90.0.8/libtool.m4
  542. --- binutils-2.14.90.0.8-001-debian/libtool.m4 2003-05-05 16:46:46.000000000 -0500
  543. +++ binutils-2.14.90.0.8/libtool.m4 2004-02-12 14:09:10.000000000 -0600
  544. @@ -645,6 +645,11 @@
  545. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  546. ;;
  547. +linux-uclibc*)
  548. + lt_cv_deplibs_check_method=pass_all
  549. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  550. + ;;
  551. +
  552. netbsd*)
  553. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  554. [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
  555. diff -urN binutils-2.14.90.0.8-001-debian/ltconfig binutils-2.14.90.0.8/ltconfig
  556. --- binutils-2.14.90.0.8-001-debian/ltconfig 2004-01-14 15:07:42.000000000 -0600
  557. +++ binutils-2.14.90.0.8/ltconfig 2004-02-12 14:09:10.000000000 -0600
  558. @@ -603,6 +603,7 @@
  559. # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  560. case $host_os in
  561. linux-gnu*) ;;
  562. +linux-uclibc*) ;;
  563. linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  564. esac
  565. @@ -1259,6 +1260,24 @@
  566. dynamic_linker='GNU/Linux ld.so'
  567. ;;
  568. +linux-uclibc*)
  569. + version_type=linux
  570. + need_lib_prefix=no
  571. + need_version=no
  572. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  573. + soname_spec='${libname}${release}.so$major'
  574. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  575. + shlibpath_var=LD_LIBRARY_PATH
  576. + shlibpath_overrides_runpath=no
  577. + # This implies no fast_install, which is unacceptable.
  578. + # Some rework will be needed to allow for fast_install
  579. + # before this can be enabled.
  580. + # Note: copied from linux-gnu, and may not be appropriate.
  581. + hardcode_into_libs=yes
  582. + # Assume using the uClibc dynamic linker.
  583. + dynamic_linker="uClibc ld.so"
  584. + ;;
  585. +
  586. netbsd*)
  587. need_lib_prefix=no
  588. need_version=no