110-uclibc-libtool-conf.patch 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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. diff -urN binutils-2.16.90.0.2-dist/configure.in binutils-2.16.90.0.2/configure.in
  42. --- binutils-2.16.90.0.2-dist/configure.in 2005-04-29 12:50:23.000000000 -0500
  43. +++ binutils-2.16.90.0.2/configure.in 2005-04-30 11:29:51.643139832 -0500
  44. @@ -328,7 +328,7 @@
  45. ;;
  46. "")
  47. case "${target}" in
  48. - *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu)
  49. + *-*-linux*-gnu | *-*-gnu* | *-*-k*bsd*-gnu | *-*-linux-uclibc*)
  50. # Enable libmudflap by default in GNU and friends.
  51. ;;
  52. *-*-freebsd*)
  53. diff -urN binutils-2.16.90.0.2-dist/gas/configure binutils-2.16.90.0.2/gas/configure
  54. --- binutils-2.16.90.0.2-dist/gas/configure 2005-04-29 12:50:27.000000000 -0500
  55. +++ binutils-2.16.90.0.2/gas/configure 2005-04-30 11:35:21.097055224 -0500
  56. @@ -3421,6 +3421,11 @@
  57. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  58. ;;
  59. +linux-uclibc*)
  60. + lt_cv_deplibs_check_method=pass_all
  61. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  62. + ;;
  63. +
  64. netbsd* | knetbsd*-gnu)
  65. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  66. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  67. diff -urN binutils-2.16.90.0.2-dist/gas/testsuite/gas/sh/basic.exp binutils-2.16.90.0.2/gas/testsuite/gas/sh/basic.exp
  68. --- binutils-2.16.90.0.2-dist/gas/testsuite/gas/sh/basic.exp 2005-04-09 14:03:14.000000000 -0500
  69. +++ binutils-2.16.90.0.2/gas/testsuite/gas/sh/basic.exp 2005-04-30 11:41:57.301822944 -0500
  70. @@ -20,7 +20,7 @@
  71. # Written by Cygnus Support.
  72. -if [istarget "sh*-*-linux-gnu"] {
  73. +if {[istarget "sh*-*-linux-gnu"] || [istarget "sh*-*-linux-uclibc"]} {
  74. global ASFLAGS
  75. set ASFLAGS "$ASFLAGS -big"
  76. }
  77. diff -urN binutils-2.16.90.0.2-dist/gprof/configure binutils-2.16.90.0.2/gprof/configure
  78. --- binutils-2.16.90.0.2-dist/gprof/configure 2005-04-29 12:50:29.000000000 -0500
  79. +++ binutils-2.16.90.0.2/gprof/configure 2005-04-30 11:35:36.880655752 -0500
  80. @@ -3419,6 +3419,11 @@
  81. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  82. ;;
  83. +linux-uclibc*)
  84. + lt_cv_deplibs_check_method=pass_all
  85. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  86. + ;;
  87. +
  88. netbsd* | knetbsd*-gnu)
  89. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  90. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  91. diff -urN binutils-2.16.90.0.2-dist/ld/configure binutils-2.16.90.0.2/ld/configure
  92. --- binutils-2.16.90.0.2-dist/ld/configure 2005-04-29 12:50:30.000000000 -0500
  93. +++ binutils-2.16.90.0.2/ld/configure 2005-04-30 11:46:15.974498720 -0500
  94. @@ -1581,6 +1581,11 @@
  95. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  96. ;;
  97. +linux-uclibc*)
  98. + lt_cv_deplibs_check_method=pass_all
  99. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  100. + ;;
  101. +
  102. netbsd* | knetbsd*-gnu)
  103. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  104. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  105. diff -urN binutils-2.16.90.0.2-dist/ld/testsuite/ld-sh/sh.exp binutils-2.16.90.0.2/ld/testsuite/ld-sh/sh.exp
  106. --- binutils-2.16.90.0.2-dist/ld/testsuite/ld-sh/sh.exp 2005-04-09 14:03:29.000000000 -0500
  107. +++ binutils-2.16.90.0.2/ld/testsuite/ld-sh/sh.exp 2005-04-30 11:45:07.890849008 -0500
  108. @@ -62,7 +62,7 @@
  109. set testsrec "SH relaxing to S-records"
  110. -if [istarget sh*-linux-gnu] {
  111. +if {[istarget sh*-linux-gnu] || [istarget sh*-*-linux-uclibc]} {
  112. # This target needs the explicit entry address.
  113. catch "exec $objdump -x tmpdir/sh1 | grep start\\ address | sed s/start\\ address//" entry_addr
  114. set srec_relax_arg "-Ttext $entry_addr -relax --oformat srec tmpdir/sh1.o"
  115. @@ -117,7 +117,7 @@
  116. return
  117. }
  118. -if [istarget sh*-linux-gnu] {
  119. +if {[istarget sh*-linux-gnu] || [istarget sh*-*-linux-uclibc]} {
  120. exec sed -e s/_main/main/ -e s/_trap/trap/ -e s/_stack/stack/ \
  121. < $srcdir/$subdir/start.s >tmpdir/start.s
  122. } else {
  123. diff -urN binutils-2.16.90.0.2-dist/ld/testsuite/ld-srec/srec.exp binutils-2.16.90.0.2/ld/testsuite/ld-srec/srec.exp
  124. --- binutils-2.16.90.0.2-dist/ld/testsuite/ld-srec/srec.exp 2005-04-29 12:50:30.000000000 -0500
  125. +++ binutils-2.16.90.0.2/ld/testsuite/ld-srec/srec.exp 2005-04-30 11:44:26.358162936 -0500
  126. @@ -385,7 +385,7 @@
  127. setup_xfail "v850*-*-elf"
  128. # The S-record linker doesn't handle Alpha Elf relaxation.
  129. -setup_xfail "alpha*-*-elf*" "alpha*-*-linux-gnu*" "alpha*-*-gnu*"
  130. +setup_xfail "alpha*-*-elf*" "alpha*-*-linux-gnu*" "alpha*-*-gnu*" "alpha*-*-linux-uclibc*"
  131. setup_xfail "alpha*-*-netbsd*"
  132. # The S-record linker hasn't any hope of coping with HPPA relocs.
  133. @@ -424,7 +424,7 @@
  134. setup_xfail "thumb-*-*"
  135. setup_xfail "powerpc*-*-eabi*"
  136. setup_xfail "v850*-*-elf"
  137. -setup_xfail "alpha*-*-elf*" "alpha*-*-linux-gnu*" "alpha*-*-gnu*"
  138. +setup_xfail "alpha*-*-elf*" "alpha*-*-linux-gnu*" "alpha*-*-gnu*" "alpha*-*-linux-uclibc*"
  139. setup_xfail "alpha*-*-netbsd*"
  140. setup_xfail "hppa*-*-*"
  141. setup_xfail "ia64-*-*"
  142. diff -urN binutils-2.16.90.0.2-dist/libtool.m4 binutils-2.16.90.0.2/libtool.m4
  143. --- binutils-2.16.90.0.2-dist/libtool.m4 2004-07-27 23:36:06.000000000 -0500
  144. +++ binutils-2.16.90.0.2/libtool.m4 2005-04-30 11:35:54.062043784 -0500
  145. @@ -645,6 +645,11 @@
  146. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  147. ;;
  148. +linux-uclibc*)
  149. + lt_cv_deplibs_check_method=pass_all
  150. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  151. + ;;
  152. +
  153. netbsd* | knetbsd*-gnu)
  154. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  155. [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
  156. diff -urN binutils-2.16.90.0.2-dist/ltconfig binutils-2.16.90.0.2/ltconfig
  157. --- binutils-2.16.90.0.2-dist/ltconfig 2004-11-22 14:33:30.000000000 -0600
  158. +++ binutils-2.16.90.0.2/ltconfig 2005-04-30 11:22:10.594229920 -0500
  159. @@ -602,6 +602,7 @@
  160. # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  161. case $host_os in
  162. +linux-uclibc*) ;;
  163. linux-gnu*) ;;
  164. linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  165. esac
  166. @@ -1270,6 +1271,23 @@
  167. dynamic_linker='GNU/Linux ld.so'
  168. ;;
  169. +linux-uclibc*)
  170. + version_type=linux
  171. + need_lib_prefix=no
  172. + need_version=no
  173. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  174. + soname_spec='${libname}${release}.so$major'
  175. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  176. + shlibpath_var=LD_LIBRARY_PATH
  177. + shlibpath_overrides_runpath=no
  178. + # This implies no fast_install, which is unacceptable.
  179. + # Some rework will be needed to allow for fast_install
  180. + # before this can be enabled.
  181. + hardcode_into_libs=yes
  182. + # Assume using the uClibc dynamic linker.
  183. + dynamic_linker="uClibc ld.so"
  184. + ;;
  185. +
  186. netbsd*)
  187. need_lib_prefix=no
  188. need_version=no
  189. diff -urN binutils-2.16.90.0.2-dist/opcodes/configure binutils-2.16.90.0.2/opcodes/configure
  190. --- binutils-2.16.90.0.2-dist/opcodes/configure 2005-04-29 12:50:31.000000000 -0500
  191. +++ binutils-2.16.90.0.2/opcodes/configure 2005-04-30 11:17:07.168357664 -0500
  192. @@ -3588,6 +3588,11 @@
  193. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  194. ;;
  195. +linux-uclibc*)
  196. + lt_cv_deplibs_check_method=pass_all
  197. + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
  198. + ;;
  199. +
  200. netbsd* | knetbsd*-gnu)
  201. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  202. lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'