no-lib64.patch 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. diff -Nur gcc-4.5.3.orig/gcc/config/i386/linux64.h gcc-4.5.3/gcc/config/i386/linux64.h
  2. --- gcc-4.5.3.orig/gcc/config/i386/linux64.h 2010-03-24 21:44:48.000000000 +0100
  3. +++ gcc-4.5.3/gcc/config/i386/linux64.h 2011-08-24 06:35:30.000000000 +0200
  4. @@ -59,7 +59,7 @@
  5. done. */
  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_LINKER64 "/lib/ld-linux-x86-64.so.2"
  9. #if TARGET_64BIT_DEFAULT
  10. #define SPEC_32 "m32"
  11. diff -Nur gcc-4.5.3.orig/gcc/config/i386/t-linux64 gcc-4.5.3/gcc/config/i386/t-linux64
  12. --- gcc-4.5.3.orig/gcc/config/i386/t-linux64 2009-04-21 21:03:23.000000000 +0200
  13. +++ gcc-4.5.3/gcc/config/i386/t-linux64 2011-08-24 06:35:30.000000000 +0200
  14. @@ -25,7 +25,7 @@
  15. MULTILIB_OPTIONS = m64/m32
  16. MULTILIB_DIRNAMES = 64 32
  17. -MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
  18. +MULTILIB_OSDIRNAMES = ../lib $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
  19. LIBGCC = stmp-multilib
  20. INSTALL_LIBGCC = install-multilib
  21. diff -Nur gcc-4.5.3.orig/gcc/config/mips/linux64.h gcc-4.5.3/gcc/config/mips/linux64.h
  22. --- gcc-4.5.3.orig/gcc/config/mips/linux64.h 2009-02-20 16:20:38.000000000 +0100
  23. +++ gcc-4.5.3/gcc/config/mips/linux64.h 2011-08-24 06:35:30.000000000 +0200
  24. @@ -36,9 +36,9 @@
  25. %{profile:-lc_p} %{!profile:-lc}}"
  26. #define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
  27. -#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld.so.1"
  28. -#define GLIBC_DYNAMIC_LINKERN32 "/lib32/ld.so.1"
  29. -#define UCLIBC_DYNAMIC_LINKERN32 "/lib32/ld-uClibc.so.0"
  30. +#define GLIBC_DYNAMIC_LINKER64 "/lib/ld.so.1"
  31. +#define GLIBC_DYNAMIC_LINKERN32 "/lib/ld.so.1"
  32. +#define UCLIBC_DYNAMIC_LINKERN32 "/lib/ld-uClibc.so.0"
  33. #define LINUX_DYNAMIC_LINKERN32 \
  34. CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
  35. diff -Nur gcc-4.5.3.orig/gcc/config/mips/t-linux64 gcc-4.5.3/gcc/config/mips/t-linux64
  36. --- gcc-4.5.3.orig/gcc/config/mips/t-linux64 2009-04-21 21:03:23.000000000 +0200
  37. +++ gcc-4.5.3/gcc/config/mips/t-linux64 2011-08-24 06:35:30.000000000 +0200
  38. @@ -18,7 +18,7 @@
  39. MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi=64
  40. MULTILIB_DIRNAMES = n32 32 64
  41. -MULTILIB_OSDIRNAMES = ../lib32 ../lib ../lib64
  42. +MULTILIB_OSDIRNAMES = ../lib ../lib ../lib
  43. EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o
  44. diff -Nur gcc-4.5.3.orig/gcc/config/rs6000/linux64.h gcc-4.5.3/gcc/config/rs6000/linux64.h
  45. --- gcc-4.5.3.orig/gcc/config/rs6000/linux64.h 2010-11-17 07:09:53.000000000 +0100
  46. +++ gcc-4.5.3/gcc/config/rs6000/linux64.h 2011-08-24 06:35:30.000000000 +0200
  47. @@ -341,7 +341,7 @@
  48. #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
  49. #define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
  50. -#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld64.so.1"
  51. +#define GLIBC_DYNAMIC_LINKER64 "/lib/ld64.so.1"
  52. #define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
  53. #define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
  54. #if UCLIBC_DEFAULT
  55. diff -Nur gcc-4.5.3.orig/gcc/config/rs6000/t-linux64 gcc-4.5.3/gcc/config/rs6000/t-linux64
  56. --- gcc-4.5.3.orig/gcc/config/rs6000/t-linux64 2009-04-21 21:03:23.000000000 +0200
  57. +++ gcc-4.5.3/gcc/config/rs6000/t-linux64 2011-08-24 06:35:30.000000000 +0200
  58. @@ -36,7 +36,7 @@
  59. MULTILIB_EXTRA_OPTS = fPIC mstrict-align
  60. MULTILIB_EXCEPTIONS = m64/msoft-float
  61. MULTILIB_EXCLUSIONS = m64/!m32/msoft-float
  62. -MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib) nof
  63. +MULTILIB_OSDIRNAMES = ../lib $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib) nof
  64. MULTILIB_MATCHES = $(MULTILIB_MATCHES_FLOAT)
  65. softfp_wrap_start := '\#ifndef __powerpc64__'
  66. diff -Nur gcc-4.5.3.orig/gcc/config/sparc/linux64.h gcc-4.5.3/gcc/config/sparc/linux64.h
  67. --- gcc-4.5.3.orig/gcc/config/sparc/linux64.h 2010-09-22 23:15:37.000000000 +0200
  68. +++ gcc-4.5.3/gcc/config/sparc/linux64.h 2011-08-24 06:36:52.000000000 +0200
  69. @@ -110,7 +110,7 @@
  70. /* If ELF is the default format, we should not use /lib/elf. */
  71. #define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
  72. -#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
  73. +#define GLIBC_DYNAMIC_LINKER64 "/lib/ld-linux.so.2"
  74. #ifdef SPARC_BI_ARCH
  75. diff -Nur gcc-4.5.3.orig/gcc/config/sparc/t-linux64 gcc-4.5.3/gcc/config/sparc/t-linux64
  76. --- gcc-4.5.3.orig/gcc/config/sparc/t-linux64 2010-10-04 18:54:26.000000000 +0200
  77. +++ gcc-4.5.3/gcc/config/sparc/t-linux64 2011-08-24 06:37:15.000000000 +0200
  78. @@ -26,7 +26,7 @@
  79. MULTILIB_OPTIONS = m64/m32
  80. MULTILIB_DIRNAMES = 64 32
  81. -MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
  82. +MULTILIB_OSDIRNAMES = ../lib $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
  83. LIBGCC = stmp-multilib
  84. INSTALL_LIBGCC = install-multilib