100-uclibc-conf.patch 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. diff -urN binutils-2.16.90.0.2-dist/bfd/configure binutils-2.16.90.0.2/bfd/configure
  2. --- binutils-2.16.90.0.2-dist/bfd/configure 2005-04-29 12:50:24.000000000 -0500
  3. +++ binutils-2.16.90.0.2/bfd/configure 2005-04-30 11:34:59.246377032 -0500
  4. @@ -3584,6 +3584,11 @@
  5. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  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 binutils-2.16.90.0.2-dist/binutils/configure binutils-2.16.90.0.2/binutils/configure
  16. --- binutils-2.16.90.0.2-dist/binutils/configure 2005-04-29 12:50:26.000000000 -0500
  17. +++ binutils-2.16.90.0.2/binutils/configure 2005-04-30 11:35:28.900868864 -0500
  18. @@ -1577,6 +1577,11 @@
  19. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  20. ;;
  21. +linux-uclibc*)
  22. + lt_cv_deplibs_check_method=pass_all
  23. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  24. + ;;
  25. +
  26. netbsd* | knetbsd*-gnu)
  27. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  28. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  29. diff -urN binutils-2.16.90.0.2-dist/configure binutils-2.16.90.0.2/configure
  30. --- binutils-2.16.90.0.2-dist/configure 2005-04-29 12:50:23.000000000 -0500
  31. +++ binutils-2.16.90.0.2/configure 2005-04-30 11:31:12.525843792 -0500
  32. @@ -1111,7 +1111,7 @@
  33. ;;
  34. "")
  35. case "${target}" in
  36. - *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
  37. + *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu | *-*-linux-uclibc*)
  38. # Enable libmudflap by default in GNU and friends.
  39. ;;
  40. *-*-freebsd*)
  41. @@ -1207,7 +1207,7 @@
  42. am33_2.0-*-linux*)
  43. noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
  44. ;;
  45. - sh-*-linux*)
  46. + sh*-*-linux*)
  47. noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
  48. ;;
  49. sh*-*-pe|mips*-*-pe|*arm-wince-pe)
  50. @@ -1495,7 +1495,7 @@
  51. romp-*-*)
  52. noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
  53. ;;
  54. - sh-*-* | sh64-*-*)
  55. + sh*-*-* | sh64-*-*)
  56. case "${host}" in
  57. i[3456789]86-*-vsta) ;; # don't add gprof back in
  58. i[3456789]86-*-go32*) ;; # don't add gprof back in
  59. diff -urN binutils-2.16.90.0.2-dist/configure.in binutils-2.16.90.0.2/configure.in
  60. --- binutils-2.16.90.0.2-dist/configure.in 2005-04-29 12:50:23.000000000 -0500
  61. +++ binutils-2.16.90.0.2/configure.in 2005-04-30 11:29:51.643139832 -0500
  62. @@ -328,7 +328,7 @@
  63. ;;
  64. "")
  65. case "${target}" in
  66. - *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
  67. + *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu | *-*-linux-uclibc*)
  68. # Enable libmudflap by default in GNU and friends.
  69. ;;
  70. *-*-freebsd*)
  71. @@ -424,7 +424,7 @@
  72. am33_2.0-*-linux*)
  73. noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
  74. ;;
  75. - sh-*-linux*)
  76. + sh*-*-linux*)
  77. noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
  78. ;;
  79. sh*-*-pe|mips*-*-pe|*arm-wince-pe)
  80. @@ -712,7 +712,7 @@
  81. romp-*-*)
  82. noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
  83. ;;
  84. - sh-*-* | sh64-*-*)
  85. + sh*-*-* | sh64-*-*)
  86. case "${host}" in
  87. i[[3456789]]86-*-vsta) ;; # don't add gprof back in
  88. i[[3456789]]86-*-go32*) ;; # don't add gprof back in
  89. diff -urN binutils-2.16.90.0.2-dist/gas/configure binutils-2.16.90.0.2/gas/configure
  90. --- binutils-2.16.90.0.2-dist/gas/configure 2005-04-29 12:50:27.000000000 -0500
  91. +++ binutils-2.16.90.0.2/gas/configure 2005-04-30 11:35:21.097055224 -0500
  92. @@ -3421,6 +3421,11 @@
  93. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  94. ;;
  95. +linux-uclibc*)
  96. + lt_cv_deplibs_check_method=pass_all
  97. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  98. + ;;
  99. +
  100. netbsd* | knetbsd*-gnu)
  101. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  102. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  103. diff -urN binutils-2.16.90.0.2-dist/gprof/configure binutils-2.16.90.0.2/gprof/configure
  104. --- binutils-2.16.90.0.2-dist/gprof/configure 2005-04-29 12:50:29.000000000 -0500
  105. +++ binutils-2.16.90.0.2/gprof/configure 2005-04-30 11:35:36.880655752 -0500
  106. @@ -3419,6 +3419,11 @@
  107. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  108. ;;
  109. +linux-uclibc*)
  110. + lt_cv_deplibs_check_method=pass_all
  111. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  112. + ;;
  113. +
  114. netbsd* | knetbsd*-gnu)
  115. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  116. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  117. diff -urN binutils-2.16.90.0.2-dist/ld/configure binutils-2.16.90.0.2/ld/configure
  118. --- binutils-2.16.90.0.2-dist/ld/configure 2005-04-29 12:50:30.000000000 -0500
  119. +++ binutils-2.16.90.0.2/ld/configure 2005-04-30 11:46:15.974498720 -0500
  120. @@ -1581,6 +1581,11 @@
  121. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  122. ;;
  123. +linux-uclibc*)
  124. + lt_cv_deplibs_check_method=pass_all
  125. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  126. + ;;
  127. +
  128. netbsd* | knetbsd*-gnu)
  129. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  130. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  131. diff -urN binutils-2.16.90.0.2-dist/libtool.m4 binutils-2.16.90.0.2/libtool.m4
  132. --- binutils-2.16.90.0.2-dist/libtool.m4 2004-07-27 23:36:06.000000000 -0500
  133. +++ binutils-2.16.90.0.2/libtool.m4 2005-04-30 11:35:54.062043784 -0500
  134. @@ -645,6 +645,11 @@
  135. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  136. ;;
  137. +linux-uclibc*)
  138. + lt_cv_deplibs_check_method=pass_all
  139. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  140. + ;;
  141. +
  142. netbsd* | knetbsd*-gnu)
  143. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  144. [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
  145. diff -urN binutils-2.16.90.0.2-dist/ltconfig binutils-2.16.90.0.2/ltconfig
  146. --- binutils-2.16.90.0.2-dist/ltconfig 2004-11-22 14:33:30.000000000 -0600
  147. +++ binutils-2.16.90.0.2/ltconfig 2005-04-30 11:22:10.594229920 -0500
  148. @@ -602,6 +602,7 @@
  149. # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  150. case $host_os in
  151. +linux-uclibc*) ;;
  152. linux-gnu*) ;;
  153. linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  154. esac
  155. @@ -1270,6 +1271,23 @@
  156. dynamic_linker='GNU/Linux ld.so'
  157. ;;
  158. +linux-uclibc*)
  159. + version_type=linux
  160. + need_lib_prefix=no
  161. + need_version=no
  162. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  163. + soname_spec='${libname}${release}.so$major'
  164. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  165. + shlibpath_var=LD_LIBRARY_PATH
  166. + shlibpath_overrides_runpath=no
  167. + # This implies no fast_install, which is unacceptable.
  168. + # Some rework will be needed to allow for fast_install
  169. + # before this can be enabled.
  170. + hardcode_into_libs=yes
  171. + # Assume using the uClibc dynamic linker.
  172. + dynamic_linker="uClibc ld.so"
  173. + ;;
  174. +
  175. netbsd*)
  176. need_lib_prefix=no
  177. need_version=no
  178. diff -urN binutils-2.16.90.0.2-dist/opcodes/configure binutils-2.16.90.0.2/opcodes/configure
  179. --- binutils-2.16.90.0.2-dist/opcodes/configure 2005-04-29 12:50:31.000000000 -0500
  180. +++ binutils-2.16.90.0.2/opcodes/configure 2005-04-30 11:17:07.168357664 -0500
  181. @@ -3588,6 +3588,11 @@
  182. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  183. ;;
  184. +linux-uclibc*)
  185. + lt_cv_deplibs_check_method=pass_all
  186. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  187. + ;;
  188. +
  189. netbsd* | knetbsd*-gnu)
  190. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  191. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'