Module Name: src
Committed By: joerg
Date: Fri Feb 21 20:44:03 UTC 2014
Modified Files:
src/share/mk: bsd.kmodule.mk
Log Message:
Use small code model for LLVM on SPARC64, it should be equivalent to
GCC's medlow.
To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 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.41 src/share/mk/bsd.kmodule.mk:1.42
--- src/share/mk/bsd.kmodule.mk:1.41 Sat Nov 9 22:40:15 2013
+++ src/share/mk/bsd.kmodule.mk Fri Feb 21 20:44:03 2014
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.kmodule.mk,v 1.41 2013/11/09 22:40:15 jmcneill Exp $
+# $NetBSD: bsd.kmodule.mk,v 1.42 2014/02/21 20:44:03 joerg Exp $
# We are not building this with PIE
MKPIE=no
@@ -38,7 +38,8 @@ CFLAGS+= -fno-pic
.if ${MACHINE} == "sparc64"
# force same memory model as rest of the kernel
-CFLAGS+= -mcmodel=medlow
+CFLAGS+= ${${ACTIVE_CC} == "gcc":? -mcmodel=medlow :}
+CFLAGS+= ${${ACTIVE_CC} == "clang":? -mcmodel=small :}
.endif
# evbppc needs some special help