pure64.patch 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. diff -Nuar glibc-2.19.orig/sysdeps/gnu/configure glibc-2.19/sysdeps/gnu/configure
  2. --- glibc-2.19.orig/sysdeps/gnu/configure 2014-02-07 11:04:38.000000000 +0200
  3. +++ glibc-2.19/sysdeps/gnu/configure 2014-03-23 01:10:06.764626173 +0200
  4. @@ -8,20 +8,20 @@
  5. # in /lib and /etc.
  6. case "$prefix" in
  7. /usr | /usr/)
  8. - # 64-bit libraries on bi-arch platforms go in /lib64 instead of /lib.
  9. + # 64-bit libraries on bi-arch platforms go in /lib too.
  10. # Allow earlier configure scripts to handle libc_cv_slibdir,
  11. # libc_cv_rtlddir, libdir, and libc_cv_localedir.
  12. test -n "$libc_cv_slibdir" || \
  13. case $machine in
  14. sparc/sparc64 | x86_64* | powerpc/powerpc64 | s390/s390-64)
  15. - libc_cv_slibdir=/lib64
  16. + libc_cv_slibdir=/lib
  17. case $machine in
  18. s390/s390-64)
  19. libc_cv_rtlddir=/lib
  20. ;;
  21. esac
  22. if test "$libdir" = '${exec_prefix}/lib'; then
  23. - libdir='${exec_prefix}/lib64';
  24. + libdir='${exec_prefix}/lib';
  25. # Locale data can be shared between 32bit and 64bit libraries
  26. libc_cv_localedir='${exec_prefix}/lib/locale'
  27. fi
  28. @@ -30,6 +30,17 @@
  29. libc_cv_slibdir=/lib
  30. ;;
  31. esac
  32. + # Use lib32 dirs in x86 on multi arch
  33. + if test "$multi_arch" = "yes"; then
  34. + case $machine in
  35. + *86)
  36. + libc_cv_slibdir="/lib32";
  37. + libdir='${exec_prefix}/lib32'
  38. + ;;
  39. + *)
  40. + ;;
  41. + esac
  42. + fi
  43. # Allow the user to override the path with --sysconfdir.
  44. if test "$sysconfdir" = '${prefix}/etc'; then
  45. libc_cv_sysconfdir=/etc
  46. diff -Nuar glibc-2.19.orig/sysdeps/gnu/configure.ac glibc-2.19/sysdeps/gnu/configure.ac
  47. --- glibc-2.19.orig/sysdeps/gnu/configure.ac 2014-02-07 11:04:38.000000000 +0200
  48. +++ glibc-2.19/sysdeps/gnu/configure.ac 2014-03-23 01:12:49.111299862 +0200
  49. @@ -8,20 +8,20 @@
  50. # in /lib and /etc.
  51. case "$prefix" in
  52. /usr | /usr/)
  53. - # 64-bit libraries on bi-arch platforms go in /lib64 instead of /lib.
  54. + # 64-bit libraries on bi-arch platforms go in /lib too.
  55. # Allow earlier configure scripts to handle libc_cv_slibdir,
  56. # libc_cv_rtlddir, libdir, and libc_cv_localedir.
  57. test -n "$libc_cv_slibdir" || \
  58. case $machine in
  59. sparc/sparc64 | x86_64* | powerpc/powerpc64 | s390/s390-64)
  60. - libc_cv_slibdir=/lib64
  61. + libc_cv_slibdir=/lib
  62. case $machine in
  63. s390/s390-64)
  64. libc_cv_rtlddir=/lib
  65. ;;
  66. esac
  67. if test "$libdir" = '${exec_prefix}/lib'; then
  68. - libdir='${exec_prefix}/lib64';
  69. + libdir='${exec_prefix}/lib';
  70. # Locale data can be shared between 32bit and 64bit libraries
  71. libc_cv_localedir='${exec_prefix}/lib/locale'
  72. fi
  73. @@ -30,6 +30,17 @@
  74. libc_cv_slibdir=/lib
  75. ;;
  76. esac
  77. + # Use lib32 dirs in x86 on multi arch
  78. + if test "$multi_arch" = "yes"; then
  79. + case $machine in
  80. + *86)
  81. + libc_cv_slibdir="/lib32";
  82. + libdir='${exec_prefix}/lib32'
  83. + ;;
  84. + *)
  85. + ;;
  86. + esac
  87. + fi
  88. # Allow the user to override the path with --sysconfdir.
  89. if test "$sysconfdir" = '${prefix}/etc'; then
  90. libc_cv_sysconfdir=/etc
  91. diff -Nuar glibc-2.19.orig/sysdeps/unix/sysv/linux/x86_64/ldconfig.h glibc-2.19/sysdeps/unix/sysv/linux/x86_64/ldconfig.h
  92. --- glibc-2.19.orig/sysdeps/unix/sysv/linux/x86_64/ldconfig.h 2014-02-07 11:04:38.000000000 +0200
  93. +++ glibc-2.19/sysdeps/unix/sysv/linux/x86_64/ldconfig.h 2014-03-23 01:14:24.101303971 +0200
  94. @@ -18,9 +18,9 @@
  95. #include <sysdeps/generic/ldconfig.h>
  96. #define SYSDEP_KNOWN_INTERPRETER_NAMES \
  97. - { "/lib/ld-linux.so.2", FLAG_ELF_LIBC6 }, \
  98. - { "/libx32/ld-linux-x32.so.2", FLAG_ELF_LIBC6 }, \
  99. - { "/lib64/ld-linux-x86-64.so.2", FLAG_ELF_LIBC6 },
  100. + { "/lib/ld-linux-x86-64.so.2", FLAG_ELF_LIBC6 }, \
  101. + { "/lib/ld-linux.so.2", FLAG_ELF_LIBC6 },\
  102. + { "/libx32/ld-linux-x32.so.2", FLAG_ELF_LIBC6 },
  103. #define SYSDEP_KNOWN_LIBRARY_NAMES \
  104. { "libc.so.6", FLAG_ELF_LIBC6 }, \
  105. { "libm.so.6", FLAG_ELF_LIBC6 },
  106. diff -Nuar glibc-2.19.orig/sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed glibc-2.19/sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed
  107. --- glibc-2.19.orig/sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed 2014-02-07 11:04:38.000000000 +0200
  108. +++ glibc-2.19/sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed 2014-03-23 01:14:58.384638787 +0200
  109. @@ -1,3 +1,3 @@
  110. /LD_TRACE_LOADED_OBJECTS=1/a\
  111. add_env="$add_env LD_LIBRARY_VERSION=\\$verify_out"
  112. -s_^\(RTLDLIST=\)\(.*lib\)\(\|64\|x32\)\(/[^/]*\)\(-x86-64\|-x32\)\(\.so\.[0-9.]*\)[ ]*$_\1"\2\4\6 \264\4-x86-64\6 \2x32\4-x32\6"_
  113. +s_^\(RTLDLIST=\)\(.*lib\)\(\|64\)\(/[^/]*\)\(-x86-64\)\(\.so\.[0-9.]*\)[ ]*$_\1"\2\4\5\6 \232\4\6"_