Module Name:    src
Committed By:   nakayama
Date:           Mon Mar 10 12:13:14 UTC 2014

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

Log Message:
-mcmodel option is CPU specific not machine specific.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 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.42 src/share/mk/bsd.kmodule.mk:1.43
--- src/share/mk/bsd.kmodule.mk:1.42	Fri Feb 21 20:44:03 2014
+++ src/share/mk/bsd.kmodule.mk	Mon Mar 10 12:13:14 2014
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.kmodule.mk,v 1.42 2014/02/21 20:44:03 joerg Exp $
+#	$NetBSD: bsd.kmodule.mk,v 1.43 2014/03/10 12:13:14 nakayama Exp $
 
 # We are not building this with PIE
 MKPIE=no
@@ -36,7 +36,7 @@ CFLAGS+=	-mlongcall
 CFLAGS+=	-fno-pic
 .endif
 
-.if ${MACHINE} == "sparc64"
+.if ${MACHINE_CPU} == "sparc64"
 # force same memory model as rest of the kernel
 CFLAGS+=	${${ACTIVE_CC} == "gcc":? -mcmodel=medlow :}
 CFLAGS+=	${${ACTIVE_CC} == "clang":? -mcmodel=small :}

Reply via email to