patch-m4_libtool_m4 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --- util-linux-2.25.2.orig/m4/libtool.m4 2014-06-25 02:25:47.000000000 -0500
  2. +++ util-linux-2.25.2/m4/libtool.m4 2014-12-27 12:19:20.527521791 -0600
  3. @@ -1312,7 +1312,7 @@ ia64-*-hpux*)
  4. rm -rf conftest*
  5. ;;
  6. -x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  7. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  8. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  9. # Find out which ABI we are using.
  10. echo 'int i;' > conftest.$ac_ext
  11. @@ -1326,10 +1326,7 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*
  12. x86_64-*linux*)
  13. LD="${LD-ld} -m elf_i386"
  14. ;;
  15. - powerpc64le-*linux*)
  16. - LD="${LD-ld} -m elf32lppclinux"
  17. - ;;
  18. - powerpc64-*linux*)
  19. + ppc64-*linux*|powerpc64-*linux*)
  20. LD="${LD-ld} -m elf32ppclinux"
  21. ;;
  22. s390x-*linux*)
  23. @@ -1348,10 +1345,7 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*
  24. x86_64-*linux*)
  25. LD="${LD-ld} -m elf_x86_64"
  26. ;;
  27. - powerpcle-*linux*)
  28. - LD="${LD-ld} -m elf64lppc"
  29. - ;;
  30. - powerpc-*linux*)
  31. + ppc*-*linux*|powerpc*-*linux*)
  32. LD="${LD-ld} -m elf64ppc"
  33. ;;
  34. s390*-*linux*|s390*-*tpf*)
  35. @@ -2675,14 +2669,10 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
  36. # before this can be enabled.
  37. hardcode_into_libs=yes
  38. - # Add ABI-specific directories to the system library path.
  39. - sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  40. -
  41. # Append ld.so.conf contents to the search path
  42. if test -f /etc/ld.so.conf; then
  43. 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' ' '`
  44. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  45. -
  46. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  47. fi
  48. # We used to test for /lib/ld.so.1 and disable shared libraries on
  49. @@ -4602,7 +4592,7 @@ m4_if([$1], [CXX], [
  50. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  51. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  52. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  53. - _LT_TAGVAR(hardcode_automatic, $1)=no
  54. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  55. _LT_TAGVAR(hardcode_direct, $1)=no
  56. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  57. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  58. @@ -5850,7 +5840,7 @@ _LT_TAGVAR(hardcode_libdir_flag_spec, $1
  59. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  60. _LT_TAGVAR(hardcode_minus_L, $1)=no
  61. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  62. -_LT_TAGVAR(hardcode_automatic, $1)=no
  63. +_LT_TAGVAR(hardcode_automatic, $1)=yes
  64. _LT_TAGVAR(inherit_rpath, $1)=no
  65. _LT_TAGVAR(module_cmds, $1)=
  66. _LT_TAGVAR(module_expsym_cmds, $1)=