summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/gcc/gcc-4.5/mips64-nomultilib.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-devtools/gcc/gcc-4.5/mips64-nomultilib.patch')
-rw-r--r--meta-oe/recipes-devtools/gcc/gcc-4.5/mips64-nomultilib.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/gcc/gcc-4.5/mips64-nomultilib.patch b/meta-oe/recipes-devtools/gcc/gcc-4.5/mips64-nomultilib.patch
new file mode 100644
index 000000000..1ef69f899
--- /dev/null
+++ b/meta-oe/recipes-devtools/gcc/gcc-4.5/mips64-nomultilib.patch
@@ -0,0 +1,52 @@
1Index: gcc-4.5/gcc/config/mips/linux64.h
2===================================================================
3--- gcc-4.5.orig/gcc/config/mips/linux64.h 2010-09-25 02:05:05.484423095 -0700
4+++ gcc-4.5/gcc/config/mips/linux64.h 2010-09-25 02:31:18.524931014 -0700
5@@ -26,7 +26,7 @@
6 BASE_DRIVER_SELF_SPECS, \
7 LINUX_DRIVER_SELF_SPECS \
8 " %{!EB:%{!EL:%(endian_spec)}}" \
9- " %{!mabi=*: -mabi=n32}"
10+ " %{!mabi=*: -mabi=64}"
11
12 #undef LIB_SPEC
13 #define LIB_SPEC "\
14@@ -35,9 +35,9 @@
15 %{!shared: \
16 %{profile:-lc_p} %{!profile:-lc}}"
17
18-#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
19-#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld.so.1"
20-#define GLIBC_DYNAMIC_LINKERN32 "/lib32/ld.so.1"
21+#define GLIBC_DYNAMIC_LINKER32 "/lib32/ld.so.1"
22+#define GLIBC_DYNAMIC_LINKER64 "/lib/ld.so.1"
23+#define GLIBC_DYNAMIC_LINKERN32 "/lib64/ld.so.1"
24 #define UCLIBC_DYNAMIC_LINKERN32 "/lib32/ld-uClibc.so.0"
25 #define LINUX_DYNAMIC_LINKERN32 \
26 CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
27Index: gcc-4.5/gcc/config.gcc
28===================================================================
29--- gcc-4.5.orig/gcc/config.gcc 2010-07-22 16:37:17.000000000 -0700
30+++ gcc-4.5/gcc/config.gcc 2010-09-25 02:25:41.412414136 -0700
31@@ -1707,7 +1707,7 @@
32 *-*-irix6*)
33 tm_file="${tm_file} mips/iris6.h"
34 tmake_file="${tmake_file} mips/t-iris6"
35- tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_N32"
36+ tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_64"
37 case ${target} in
38 *-*-irix6.[0-4]*)
39 use_gcc_stdint=provide
40Index: gcc-4.5/gcc/config/mips/t-linux64
41===================================================================
42--- gcc-4.5.orig/gcc/config/mips/t-linux64 2010-07-11 16:14:42.000000000 -0700
43+++ gcc-4.5/gcc/config/mips/t-linux64 2010-09-25 02:29:52.758708250 -0700
44@@ -18,7 +18,7 @@
45
46 MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi=64
47 MULTILIB_DIRNAMES = n32 32 64
48-MULTILIB_OSDIRNAMES = ../lib32 ../lib ../lib64
49+MULTILIB_OSDIRNAMES = ../lib64 ../lib32 ../lib
50
51 EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o
52