binutils-2.20.51.0.2-libtool-lib64.patch 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. diff -rcp ../binutils-2.20.51.0.7.original/bfd/configure ./bfd/configure
  2. --- a/bfd/configure 2010-04-08 14:53:48.000000000 +0100
  3. +++ b/bfd/configure 2010-04-08 14:56:50.000000000 +0100
  4. @@ -10762,10 +10762,34 @@
  5. # before this can be enabled.
  6. hardcode_into_libs=yes
  7. + # find out which ABI we are using
  8. + libsuff=
  9. + case "$host_cpu" in
  10. + x86_64*|s390*|powerpc*|ppc*|sparc*)
  11. + echo 'int i;' > conftest.$ac_ext
  12. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13. + (eval $ac_compile) 2>&5
  14. + ac_status=$?
  15. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16. + (exit $ac_status); }; then
  17. + case `/usr/bin/file conftest.$ac_objext` in
  18. + *64-bit*)
  19. + libsuff=64
  20. + if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
  21. + sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  22. + fi
  23. + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
  24. + ;;
  25. + esac
  26. + fi
  27. + rm -rf conftest*
  28. + ;;
  29. + esac
  30. +
  31. # Append ld.so.conf contents to the search path
  32. if test -f /etc/ld.so.conf; then
  33. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  34. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  35. + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  36. fi
  37. # We used to test for /lib/ld.so.1 and disable shared libraries on
  38. diff -rcp ../binutils-2.20.51.0.7.original/binutils/configure ./binutils/configure
  39. --- a/binutils/configure 2010-04-08 14:53:45.000000000 +0100
  40. +++ b/binutils/configure 2010-04-08 14:56:21.000000000 +0100
  41. @@ -10560,10 +10560,34 @@
  42. # before this can be enabled.
  43. hardcode_into_libs=yes
  44. + # find out which ABI we are using
  45. + libsuff=
  46. + case "$host_cpu" in
  47. + x86_64*|s390*|powerpc*|ppc*|sparc*)
  48. + echo 'int i;' > conftest.$ac_ext
  49. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  50. + (eval $ac_compile) 2>&5
  51. + ac_status=$?
  52. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  53. + (exit $ac_status); }; then
  54. + case `/usr/bin/file conftest.$ac_objext` in
  55. + *64-bit*)
  56. + libsuff=64
  57. + if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
  58. + sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  59. + fi
  60. + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
  61. + ;;
  62. + esac
  63. + fi
  64. + rm -rf conftest*
  65. + ;;
  66. + esac
  67. +
  68. # Append ld.so.conf contents to the search path
  69. if test -f /etc/ld.so.conf; then
  70. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  71. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  72. + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  73. fi
  74. # We used to test for /lib/ld.so.1 and disable shared libraries on
  75. diff -rcp ../binutils-2.20.51.0.7.original/gas/configure ./gas/configure
  76. --- a/gas/configure 2010-04-08 14:53:47.000000000 +0100
  77. +++ b/gas/configure 2010-04-08 14:57:24.000000000 +0100
  78. @@ -10547,10 +10547,34 @@
  79. # before this can be enabled.
  80. hardcode_into_libs=yes
  81. + # find out which ABI we are using
  82. + libsuff=
  83. + case "$host_cpu" in
  84. + x86_64*|s390*|powerpc*|ppc*|sparc*)
  85. + echo 'int i;' > conftest.$ac_ext
  86. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  87. + (eval $ac_compile) 2>&5
  88. + ac_status=$?
  89. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  90. + (exit $ac_status); }; then
  91. + case `/usr/bin/file conftest.$ac_objext` in
  92. + *64-bit*)
  93. + libsuff=64
  94. + if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
  95. + sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  96. + fi
  97. + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
  98. + ;;
  99. + esac
  100. + fi
  101. + rm -rf conftest*
  102. + ;;
  103. + esac
  104. +
  105. # Append ld.so.conf contents to the search path
  106. if test -f /etc/ld.so.conf; then
  107. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  108. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  109. + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  110. fi
  111. # We used to test for /lib/ld.so.1 and disable shared libraries on
  112. diff -rcp ../binutils-2.20.51.0.7.original/gprof/configure ./gprof/configure
  113. --- a/gprof/configure 2010-04-08 14:53:45.000000000 +0100
  114. +++ b/gprof/configure 2010-04-08 14:57:50.000000000 +0100
  115. @@ -10485,10 +10485,34 @@
  116. # before this can be enabled.
  117. hardcode_into_libs=yes
  118. + # find out which ABI we are using
  119. + libsuff=
  120. + case "$host_cpu" in
  121. + x86_64*|s390*|powerpc*|ppc*|sparc*)
  122. + echo 'int i;' > conftest.$ac_ext
  123. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  124. + (eval $ac_compile) 2>&5
  125. + ac_status=$?
  126. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  127. + (exit $ac_status); }; then
  128. + case `/usr/bin/file conftest.$ac_objext` in
  129. + *64-bit*)
  130. + libsuff=64
  131. + if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
  132. + sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  133. + fi
  134. + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
  135. + ;;
  136. + esac
  137. + fi
  138. + rm -rf conftest*
  139. + ;;
  140. + esac
  141. +
  142. # Append ld.so.conf contents to the search path
  143. if test -f /etc/ld.so.conf; then
  144. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  145. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  146. + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  147. fi
  148. # We used to test for /lib/ld.so.1 and disable shared libraries on
  149. diff -rcp ../binutils-2.20.51.0.7.original/ld/configure ./ld/configure
  150. --- a/ld/configure 2010-04-08 14:53:44.000000000 +0100
  151. +++ b/ld/configure 2010-04-08 14:58:21.000000000 +0100
  152. @@ -10966,10 +10966,34 @@
  153. # before this can be enabled.
  154. hardcode_into_libs=yes
  155. + # find out which ABI we are using
  156. + libsuff=
  157. + case "$host_cpu" in
  158. + x86_64*|s390*|powerpc*|ppc*|sparc*)
  159. + echo 'int i;' > conftest.$ac_ext
  160. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  161. + (eval $ac_compile) 2>&5
  162. + ac_status=$?
  163. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  164. + (exit $ac_status); }; then
  165. + case `/usr/bin/file conftest.$ac_objext` in
  166. + *64-bit*)
  167. + libsuff=64
  168. + if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
  169. + sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  170. + fi
  171. + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
  172. + ;;
  173. + esac
  174. + fi
  175. + rm -rf conftest*
  176. + ;;
  177. + esac
  178. +
  179. # Append ld.so.conf contents to the search path
  180. if test -f /etc/ld.so.conf; then
  181. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  182. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  183. + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  184. fi
  185. # We used to test for /lib/ld.so.1 and disable shared libraries on
  186. Only in .: .#libtool.m4
  187. Only in .: #libtool.m4#
  188. diff -rcp ../binutils-2.20.51.0.7.original/opcodes/configure ./opcodes/configure
  189. --- a/opcodes/configure 2010-04-08 14:53:45.000000000 +0100
  190. +++ b/opcodes/configure 2010-04-08 14:59:10.000000000 +0100
  191. @@ -10496,10 +10496,34 @@
  192. # before this can be enabled.
  193. hardcode_into_libs=yes
  194. + # find out which ABI we are using
  195. + libsuff=
  196. + case "$host_cpu" in
  197. + x86_64*|s390*|powerpc*|ppc*|sparc*)
  198. + echo 'int i;' > conftest.$ac_ext
  199. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  200. + (eval $ac_compile) 2>&5
  201. + ac_status=$?
  202. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  203. + (exit $ac_status); }; then
  204. + case `/usr/bin/file conftest.$ac_objext` in
  205. + *64-bit*)
  206. + libsuff=64
  207. + if test x"$sys_lib_search_path_spec" = x"/lib /usr/lib /usr/local/lib"; then
  208. + sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  209. + fi
  210. + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
  211. + ;;
  212. + esac
  213. + fi
  214. + rm -rf conftest*
  215. + ;;
  216. + esac
  217. +
  218. # Append ld.so.conf contents to the search path
  219. if test -f /etc/ld.so.conf; then
  220. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  221. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  222. + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  223. fi
  224. # We used to test for /lib/ld.so.1 and disable shared libraries on