Module Name: src Committed By: mrg Date: Tue Dec 15 04:05:35 UTC 2009
Modified Files: src/compat/mips64/64: bsd.64.mk src/compat/mips64/o32: bsd.o32.mk Log Message: fix the previous: default the target depending the MACHINE_ARCH. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/compat/mips64/64/bsd.64.mk cvs rdiff -u -r1.2 -r1.3 src/compat/mips64/o32/bsd.o32.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/compat/mips64/64/bsd.64.mk diff -u src/compat/mips64/64/bsd.64.mk:1.2 src/compat/mips64/64/bsd.64.mk:1.3 --- src/compat/mips64/64/bsd.64.mk:1.2 Mon Dec 14 13:43:59 2009 +++ src/compat/mips64/64/bsd.64.mk Tue Dec 15 04:05:34 2009 @@ -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 Index: src/compat/mips64/o32/bsd.o32.mk diff -u src/compat/mips64/o32/bsd.o32.mk:1.2 src/compat/mips64/o32/bsd.o32.mk:1.3 --- src/compat/mips64/o32/bsd.o32.mk:1.2 Mon Dec 14 13:43:59 2009 +++ src/compat/mips64/o32/bsd.o32.mk Tue Dec 15 04:05:34 2009 @@ -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