summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2014-02-23 17:25:53 +0000
committerdim <dim@FreeBSD.org>2014-02-23 17:25:53 +0000
commitf05fef4a19a297b8a71f10c26de0f22d5676a811 (patch)
treec4e30039db7b17a4cde51ba78c15d0ddd854b40d /sys/conf
parentc6424a2503905a893f3add62cc7bc70b3c25ebdf (diff)
downloadFreeBSD-src-f05fef4a19a297b8a71f10c26de0f22d5676a811.zip
FreeBSD-src-f05fef4a19a297b8a71f10c26de0f22d5676a811.tar.gz
Similar to r262306 for boot1's Makefile, clang spells -mcmodel=medany as
-mcmodel=large, for now. While here, disable -msoft-float for clang since it is not supported, and add -fno-dwarf2-cfi-asm to stop it from emitting .cfi directives, which GNU as does not support.
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/kern.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index 92425f4..a166a11 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -93,7 +93,11 @@ INLINE_LIMIT?= 15000
# operations which it has a tendency to do.
#
.if ${MACHINE_CPUARCH} == "sparc64"
+.if ${COMPILER_TYPE} == "clang"
+CFLAGS+= -mcmodel=large -fno-dwarf2-cfi-asm
+.else
CFLAGS+= -mcmodel=medany -msoft-float
+.endif
INLINE_LIMIT?= 15000
.endif
OpenPOWER on IntegriCloud