40
40
===================================================================
41
41
--- a/src/gcc/config/rs6000/t-linux64
42
42
+++ b/src/gcc/config/rs6000/t-linux64
43
@@ -31,8 +31,13 @@ MULTILIB_DIRNAMES = 64 32
44
44
MULTILIB_EXTRA_OPTS = fPIC mstrict-align
45
45
MULTILIB_EXCEPTIONS =
46
46
MULTILIB_EXCLUSIONS =
81
81
ifneq (,$(findstring x86_64,$(target)))
82
82
ifneq (,$(findstring biarchx32.h,$(tm_include_list)))
83
Index: b/src/gcc/config/mips/t-linux64
84
===================================================================
85
--- a/src/gcc/config/mips/t-linux64
86
+++ b/src/gcc/config/mips/t-linux64
87
@@ -25,6 +25,23 @@ MULTILIB_OSDIRNAMES = \
88
../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
89
../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
91
+ifneq (,$(findstring gnuabi64,$(target)))
92
+MULTILIB_OSDIRNAMES = \
93
+ ../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
94
+ ../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
95
+ ../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
96
+else ifneq (,$(findstring gnuabin32,$(target)))
97
+MULTILIB_OSDIRNAMES = \
98
+ ../lib$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
99
+ ../libo32$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
100
+ ../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
102
+MULTILIB_OSDIRNAMES = \
103
+ ../lib32$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT)) \
104
+ ../lib$(call if_multiarch,:mips$(MIPS_EL)-linux-gnu$(MIPS_SOFT)) \
105
+ ../lib64$(call if_multiarch,:mips64$(MIPS_EL)-linux-gnuabi64$(MIPS_SOFT))
108
ifneq (,$(findstring abin32,$(target)))
109
MULTIARCH_DIRNAME = $(call if_multiarch,mips64$(MIPS_EL)-linux-gnuabin32$(MIPS_SOFT))
111
Index: b/src/gcc/config.gcc
112
===================================================================
113
--- a/src/gcc/config.gcc
114
+++ b/src/gcc/config.gcc
115
@@ -1807,6 +1807,12 @@ mips64*-*-linux* | mipsisa64*-*-linux*)
116
tmake_file="${tmake_file} mips/t-linux64"
117
tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_N32"
120
+ tm_defines=$(echo ${tm_defines}| sed 's/MIPS_ABI_DEFAULT=ABI_N32/MIPS_ABI_DEFAULT=ABI_64/g')
125
mips64el-st-linux-gnu)
126
tm_file="${tm_file} mips/st.h"
127
tmake_file="${tmake_file} mips/t-st"