Module Name: src
Committed By: matt
Date: Wed Jun 24 13:42:53 UTC 2015
Modified Files:
src/share/mk: bsd.kmodule.mk
Log Message:
Don't add anything to CFLAGS/LDFLAGS on mips64 is BSD_MK_COMPAT_FILE is set.
To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 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.53 src/share/mk/bsd.kmodule.mk:1.54
--- src/share/mk/bsd.kmodule.mk:1.53 Sat May 2 18:18:13 2015
+++ src/share/mk/bsd.kmodule.mk Wed Jun 24 13:42:53 2015
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.kmodule.mk,v 1.53 2015/05/02 18:18:13 matt Exp $
+# $NetBSD: bsd.kmodule.mk,v 1.54 2015/06/24 13:42:53 matt Exp $
# We are not building this with PIE
MKPIE=no
@@ -37,10 +37,10 @@ CFLAGS+= ${${ACTIVE_CC} == "gcc":? -mlon
CFLAGS+= -fno-pic
.elif ${MACHINE_CPU} == "riscv"
CFLAGS+= -fPIC -Wa,-fno-pic
-.elif ${MACHINE_ARCH} == "mips64eb"
+.elif ${MACHINE_ARCH} == "mips64eb" && !defined(BSD_MK_COMPAT_FILE)
CFLAGS+= -mabi=64
LDFLAGS+= -Wl,-m,elf64btsmip
-.elif ${MACHINE_ARCH} == "mips64el"
+.elif ${MACHINE_ARCH} == "mips64el" && !defined(BSD_MK_COMPAT_FILE)
CFLAGS+= -mabi=64
LDFLAGS+= -Wl,-m,elf64ltsmip
.endif