Module Name:    src
Committed By:   matt
Date:           Sat May  2 18:18:13 UTC 2015

Modified Files:
        src/share/mk: bsd.kmodule.mk

Log Message:
For mips64, build kmodules using N64 ABI


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/share/mk/bsd.kmodule.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.kmodule.mk
diff -u src/share/mk/bsd.kmodule.mk:1.52 src/share/mk/bsd.kmodule.mk:1.53
--- src/share/mk/bsd.kmodule.mk:1.52	Thu Nov 13 02:31:24 2014
+++ src/share/mk/bsd.kmodule.mk	Sat May  2 18:18:13 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.kmodule.mk,v 1.52 2014/11/13 02:31:24 christos Exp $
+#	$NetBSD: bsd.kmodule.mk,v 1.53 2015/05/02 18:18:13 matt Exp $
 
 # We are not building this with PIE
 MKPIE=no
@@ -37,6 +37,12 @@ CFLAGS+=	${${ACTIVE_CC} == "gcc":? -mlon
 CFLAGS+=	-fno-pic
 .elif ${MACHINE_CPU} == "riscv"
 CFLAGS+=	-fPIC -Wa,-fno-pic
+.elif ${MACHINE_ARCH} == "mips64eb"
+CFLAGS+=	-mabi=64
+LDFLAGS+=	-Wl,-m,elf64btsmip
+.elif ${MACHINE_ARCH} == "mips64el"
+CFLAGS+=	-mabi=64
+LDFLAGS+=	-Wl,-m,elf64ltsmip
 .endif
 
 .if ${MACHINE_CPU} == "sparc64"

Reply via email to