OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

130 lines
5.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../gcc/gcc-4.4-multilib-1.patch
  5. # Copyright (C) 2009 - 2010 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. diff --git a/gcc/config/i386/linux64.h b/gcc/config/i386/linux64.h
  17. index cfa3f49..0846dd0 100644
  18. --- a/gcc/config/i386/linux64.h
  19. +++ b/gcc/config/i386/linux64.h
  20. @@ -58,7 +58,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  21. When the -shared link option is used a final link is not being
  22. done. */
  23. -#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
  24. +#define GLIBC_DYNAMIC_LINKER32 "/lib32/ld-linux.so.2"
  25. #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
  26. #undef ASM_SPEC
  27. diff --git a/gcc/config/i386/t-linux64 b/gcc/config/i386/t-linux64
  28. index 36378d8..b76b2e3 100644
  29. --- a/gcc/config/i386/t-linux64
  30. +++ b/gcc/config/i386/t-linux64
  31. @@ -7,7 +7,7 @@
  32. MULTILIB_OPTIONS = m64/m32
  33. MULTILIB_DIRNAMES = 64 32
  34. -MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)
  35. +MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib32)
  36. LIBGCC = stmp-multilib
  37. INSTALL_LIBGCC = install-multilib
  38. diff --git a/gcc/config/mips/linux64.h b/gcc/config/mips/linux64.h
  39. index 2f24dfa..d0164ac 100644
  40. --- a/gcc/config/mips/linux64.h
  41. +++ b/gcc/config/mips/linux64.h
  42. @@ -35,9 +35,9 @@ along with GCC; see the file COPYING3. If not see
  43. %{!shared: \
  44. %{profile:-lc_p} %{!profile:-lc}}"
  45. -#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
  46. +#define GLIBC_DYNAMIC_LINKER32 "/lib32/ld.so.1"
  47. #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld.so.1"
  48. -#define GLIBC_DYNAMIC_LINKERN32 "/lib32/ld.so.1"
  49. +#define GLIBC_DYNAMIC_LINKERN32 "/lib64/ld.so.1"
  50. #define UCLIBC_DYNAMIC_LINKERN32 "/lib32/ld-uClibc.so.0"
  51. #define LINUX_DYNAMIC_LINKERN32 \
  52. CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
  53. diff --git a/gcc/config/mips/t-linux64 b/gcc/config/mips/t-linux64
  54. index 0592e7f..d418d73 100644
  55. --- a/gcc/config/mips/t-linux64
  56. +++ b/gcc/config/mips/t-linux64
  57. @@ -1,6 +1,6 @@
  58. MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi=64
  59. MULTILIB_DIRNAMES = n32 32 64
  60. -MULTILIB_OSDIRNAMES = ../lib32 ../lib ../lib64
  61. +MULTILIB_OSDIRNAMES = ../lib64 ../lib32 ../lib64
  62. EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o
  63. diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h
  64. index a83cc24..da6bfe7 100644
  65. --- a/gcc/config/rs6000/linux64.h
  66. +++ b/gcc/config/rs6000/linux64.h
  67. @@ -342,7 +342,7 @@ extern int dot_symbols;
  68. #undef LINK_OS_DEFAULT_SPEC
  69. #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
  70. -#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
  71. +#define GLIBC_DYNAMIC_LINKER32 "/lib32/ld.so.1"
  72. #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld64.so.1"
  73. #define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
  74. #define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
  75. diff --git a/gcc/config/rs6000/t-linux64 b/gcc/config/rs6000/t-linux64
  76. index 2a2e7b0..b4ef657 100644
  77. --- a/gcc/config/rs6000/t-linux64
  78. +++ b/gcc/config/rs6000/t-linux64
  79. @@ -19,7 +19,7 @@ MULTILIB_DIRNAMES = 64 32 nof
  80. MULTILIB_EXTRA_OPTS = fPIC mstrict-align
  81. MULTILIB_EXCEPTIONS = m64/msoft-float
  82. MULTILIB_EXCLUSIONS = m64/!m32/msoft-float
  83. -MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib) nof
  84. +MULTILIB_OSDIRNAMES = ../lib64 $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib32) nof
  85. MULTILIB_MATCHES = $(MULTILIB_MATCHES_FLOAT)
  86. softfp_wrap_start := '\#ifndef __powerpc64__'
  87. diff --git a/gcc/config/sparc/linux64.h b/gcc/config/sparc/linux64.h
  88. index 9d0799f..4a4cb37 100644
  89. --- a/gcc/config/sparc/linux64.h
  90. +++ b/gcc/config/sparc/linux64.h
  91. @@ -109,7 +109,7 @@ along with GCC; see the file COPYING3. If not see
  92. /* If ELF is the default format, we should not use /lib/elf. */
  93. -#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
  94. +#define GLIBC_DYNAMIC_LINKER32 "/lib32/ld-linux.so.2"
  95. #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
  96. #ifdef SPARC_BI_ARCH
  97. @@ -121,7 +121,7 @@ along with GCC; see the file COPYING3. If not see
  98. { "link_arch_default", LINK_ARCH_DEFAULT_SPEC }, \
  99. { "link_arch", LINK_ARCH_SPEC },
  100. -#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,%R/usr/lib %{shared:-shared} \
  101. +#define LINK_ARCH32_SPEC "-m elf32_sparc -Y P,%R/usr/lib32 %{shared:-shared} \
  102. %{!shared: \
  103. %{!ibcs: \
  104. %{!static: \
  105. diff --git a/gcc/config/sparc/t-linux64 b/gcc/config/sparc/t-linux64
  106. index 7a1d5b1..8e8025e 100644
  107. --- a/gcc/config/sparc/t-linux64
  108. +++ b/gcc/config/sparc/t-linux64
  109. @@ -1,6 +1,6 @@
  110. MULTILIB_OPTIONS = m64/m32
  111. MULTILIB_DIRNAMES = 64 32
  112. -MULTILIB_OSDIRNAMES = ../lib64 ../lib
  113. +MULTILIB_OSDIRNAMES = ../lib64 ../lib32
  114. LIBGCC = stmp-multilib
  115. INSTALL_LIBGCC = install-multilib