no-lib64.patch 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. diff -Nur gcc-4.7.2.orig/gcc/config/i386/linux64.h gcc-4.7.2/gcc/config/i386/linux64.h
  2. --- gcc-4.7.2.orig/gcc/config/i386/linux64.h 2011-07-07 17:38:34.000000000 +0200
  3. +++ gcc-4.7.2/gcc/config/i386/linux64.h 2012-09-22 12:48:17.000000000 +0200
  4. @@ -29,5 +29,5 @@
  5. #define GNU_USER_LINK_EMULATIONX32 "elf32_x86_64"
  6. #define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
  7. -#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
  8. -#define GLIBC_DYNAMIC_LINKERX32 "/libx32/ld-linux-x32.so.2"
  9. +#define GLIBC_DYNAMIC_LINKER64 "/lib/ld-linux-x86-64.so.2"
  10. +#define GLIBC_DYNAMIC_LINKERX32 "/lib/ld-linux-so.2"
  11. diff -Nur gcc-4.7.2.orig/gcc/config/i386/t-linux64 gcc-4.7.2/gcc/config/i386/t-linux64
  12. --- gcc-4.7.2.orig/gcc/config/i386/t-linux64 2011-11-02 16:23:48.000000000 +0100
  13. +++ gcc-4.7.2/gcc/config/i386/t-linux64 2012-09-22 12:46:07.000000000 +0200
  14. @@ -34,6 +34,6 @@
  15. comma=,
  16. MULTILIB_OPTIONS = $(subst $(comma),/,$(TM_MULTILIB_CONFIG))
  17. MULTILIB_DIRNAMES = $(patsubst m%, %, $(subst /, ,$(MULTILIB_OPTIONS)))
  18. -MULTILIB_OSDIRNAMES = m64=../lib64
  19. -MULTILIB_OSDIRNAMES+= m32=$(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
  20. -MULTILIB_OSDIRNAMES+= mx32=../libx32
  21. +MULTILIB_OSDIRNAMES = m64=../lib
  22. +MULTILIB_OSDIRNAMES+= m32=../lib
  23. +MULTILIB_OSDIRNAMES+= mx32=../lib
  24. diff -Nur gcc-4.7.2.orig/gcc/config/mips/linux64.h gcc-4.7.2/gcc/config/mips/linux64.h
  25. --- gcc-4.7.2.orig/gcc/config/mips/linux64.h 2011-07-19 20:00:27.000000000 +0200
  26. +++ gcc-4.7.2/gcc/config/mips/linux64.h 2012-09-22 12:44:16.000000000 +0200
  27. @@ -24,9 +24,9 @@
  28. #define GNU_USER_LINK_EMULATIONN32 "elf32%{EB:b}%{EL:l}tsmipn32"
  29. #define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
  30. -#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld.so.1"
  31. -#define GLIBC_DYNAMIC_LINKERN32 "/lib32/ld.so.1"
  32. -#define UCLIBC_DYNAMIC_LINKERN32 "/lib32/ld-uClibc.so.0"
  33. +#define GLIBC_DYNAMIC_LINKER64 "/lib/ld.so.1"
  34. +#define GLIBC_DYNAMIC_LINKERN32 "/lib/ld.so.1"
  35. +#define UCLIBC_DYNAMIC_LINKERN32 "/lib/ld-uClibc.so.0"
  36. #define BIONIC_DYNAMIC_LINKERN32 "/system/bin/linker32"
  37. #define GNU_USER_DYNAMIC_LINKERN32 \
  38. CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32, \
  39. diff -Nur gcc-4.7.2.orig/gcc/config/mips/t-linux64 gcc-4.7.2/gcc/config/mips/t-linux64
  40. --- gcc-4.7.2.orig/gcc/config/mips/t-linux64 2011-11-02 15:33:56.000000000 +0100
  41. +++ gcc-4.7.2/gcc/config/mips/t-linux64 2012-09-22 12:48:39.000000000 +0200
  42. @@ -18,4 +18,4 @@
  43. MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi=64
  44. MULTILIB_DIRNAMES = n32 32 64
  45. -MULTILIB_OSDIRNAMES = ../lib32 ../lib ../lib64
  46. +MULTILIB_OSDIRNAMES = ../lib ../lib ../lib
  47. diff -Nur gcc-4.7.2.orig/gcc/config/rs6000/linux64.h gcc-4.7.2/gcc/config/rs6000/linux64.h
  48. --- gcc-4.7.2.orig/gcc/config/rs6000/linux64.h 2012-03-12 17:16:51.000000000 +0100
  49. +++ gcc-4.7.2/gcc/config/rs6000/linux64.h 2012-09-22 12:44:16.000000000 +0200
  50. @@ -359,7 +359,7 @@
  51. #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
  52. #define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
  53. -#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld64.so.1"
  54. +#define GLIBC_DYNAMIC_LINKER64 "/lib/ld64.so.1"
  55. #define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
  56. #define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
  57. #if DEFAULT_LIBC == LIBC_UCLIBC
  58. diff -Nur gcc-4.7.2.orig/gcc/config/rs6000/t-linux64 gcc-4.7.2/gcc/config/rs6000/t-linux64
  59. --- gcc-4.7.2.orig/gcc/config/rs6000/t-linux64 2011-11-02 16:23:48.000000000 +0100
  60. +++ gcc-4.7.2/gcc/config/rs6000/t-linux64 2012-09-22 12:44:16.000000000 +0200
  61. @@ -31,5 +31,5 @@
  62. MULTILIB_EXTRA_OPTS = fPIC mstrict-align
  63. MULTILIB_EXCEPTIONS = m64/msoft-float
  64. MULTILIB_EXCLUSIONS = m64/!m32/msoft-float
  65. -MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib) nof
  66. +MULTILIB_OSDIRNAMES = ../lib $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib) nof
  67. MULTILIB_MATCHES = $(MULTILIB_MATCHES_FLOAT)
  68. diff -Nur gcc-4.7.2.orig/gcc/config/sparc/linux64.h gcc-4.7.2/gcc/config/sparc/linux64.h
  69. --- gcc-4.7.2.orig/gcc/config/sparc/linux64.h 2011-11-12 02:05:07.000000000 +0100
  70. +++ gcc-4.7.2/gcc/config/sparc/linux64.h 2012-09-22 12:44:16.000000000 +0200
  71. @@ -94,7 +94,7 @@
  72. done. */
  73. #define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
  74. -#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
  75. +#define GLIBC_DYNAMIC_LINKER64 "/lib/ld-linux.so.2"
  76. #ifdef SPARC_BI_ARCH
  77. diff -Nur gcc-4.7.2.orig/gcc/config/sparc/t-linux64 gcc-4.7.2/gcc/config/sparc/t-linux64
  78. --- gcc-4.7.2.orig/gcc/config/sparc/t-linux64 2011-11-02 16:23:48.000000000 +0100
  79. +++ gcc-4.7.2/gcc/config/sparc/t-linux64 2012-09-22 12:49:43.000000000 +0200
  80. @@ -26,4 +26,4 @@
  81. MULTILIB_OPTIONS = m64/m32
  82. MULTILIB_DIRNAMES = 64 32
  83. -MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
  84. +MULTILIB_OSDIRNAMES = ../lib ../lib