Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/compat/mips64 fix the previous: default the target depending...
details: https://anonhg.NetBSD.org/src/rev/95c06e5ea9d1
branches: trunk
changeset: 750064:95c06e5ea9d1
user: mrg <mrg%NetBSD.org@localhost>
date: Tue Dec 15 04:05:34 2009 +0000
description:
fix the previous: default the target depending the MACHINE_ARCH.
diffstat:
compat/mips64/64/bsd.64.mk | 8 ++++++--
compat/mips64/o32/bsd.o32.mk | 8 ++++++--
2 files changed, 12 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r 85805dbf00de -r 95c06e5ea9d1 compat/mips64/64/bsd.64.mk
--- a/compat/mips64/64/bsd.64.mk Tue Dec 15 04:03:55 2009 +0000
+++ b/compat/mips64/64/bsd.64.mk Tue Dec 15 04:05:34 2009 +0000
@@ -1,6 +1,10 @@
-# $NetBSD: bsd.64.mk,v 1.2 2009/12/14 13:43:59 uebayasi Exp $
+# $NetBSD: bsd.64.mk,v 1.3 2009/12/15 04:05:34 mrg Exp $
-LD+= -m elf64btsmip # XXX endian
+.if ${MACHINE_ARCH} == "mips64eb"
+LD+= -m elf64btsmip
+.else
+LD+= -m elf64ltsmip
+.endif
MLIBDIR= 64
COPTS+= -mabi=64
diff -r 85805dbf00de -r 95c06e5ea9d1 compat/mips64/o32/bsd.o32.mk
--- a/compat/mips64/o32/bsd.o32.mk Tue Dec 15 04:03:55 2009 +0000
+++ b/compat/mips64/o32/bsd.o32.mk Tue Dec 15 04:05:34 2009 +0000
@@ -1,6 +1,10 @@
-# $NetBSD: bsd.o32.mk,v 1.2 2009/12/14 13:43:59 uebayasi Exp $
+# $NetBSD: bsd.o32.mk,v 1.3 2009/12/15 04:05:34 mrg Exp $
-LD+= -m elf32btsmip # XXX endian
+.if ${MACHINE_ARCH} == "mips64eb"
+LD+= -m elf32btsmip
+.else
+LD+= -m elf32ltsmip
+.endif
MLIBDIR= o32
COPTS+= -mabi=32 -march=mips3
Home |
Main Index |
Thread Index |
Old Index