MIPS: Fix cross-tools build.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
This commit is contained in:
haiqu
2015-05-19 14:48:32 +10:00
committed by Augustin Cavalier
parent e2963a55e6
commit 15ab9ca51d
3 changed files with 17 additions and 9 deletions

View File

@@ -1841,6 +1841,11 @@ mips*-mti-linux*)
gas=yes
test x$with_llsc != x || with_llsc=yes
;;
mipsel-*-haiku*)
target_cpu_default="MASK_ABICALLS"
tm_file="elfos.h ${tm_file} haiku.h mips/haiku.h"
tmake_file="${tmake_file} mips/t-elf t-haiku"
;;
mips64*-*-linux* | mipsisa64*-*-linux*)
tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} mips/gnu-user.h mips/gnu-user64.h mips/linux64.h mips/linux-common.h"
tmake_file="${tmake_file} mips/t-linux64"

View File

@@ -126,9 +126,10 @@ case ${host} in
;;
esac
;;
mips*-*-linux*)
mips*-*-linux* \
| mips*-*-haiku* )
case ${target} in
mips*-*-linux*)
mips*-*-* )
host_extra_gcc_objs="driver-native.o"
host_xmake_file="${host_xmake_file} mips/x-native"
;;

View File

@@ -767,6 +767,8 @@ mips*-sde-elf*)
esac
extra_parts="$extra_parts crti.o crtn.o"
;;
mipsel-*-haiku*)
;;
mipsisa32-*-elf* | mipsisa32el-*-elf* | \
mipsisa32r2-*-elf* | mipsisa32r2el-*-elf* | \
mipsisa64-*-elf* | mipsisa64el-*-elf* | \