aboutsummaryrefslogtreecommitdiff
path: root/sys/conf/kern.mk
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2014-02-23 17:25:53 +0000
committerDimitry Andric <dim@FreeBSD.org>2014-02-23 17:25:53 +0000
commit90ce288afefaf5e163a47fbf39f840ad6db6b30e (patch)
treec4e30039db7b17a4cde51ba78c15d0ddd854b40d /sys/conf/kern.mk
parent883d11a1832dd800e5e3db6c556010425605318e (diff)
downloadsrc-90ce288afefaf5e163a47fbf39f840ad6db6b30e.tar.gz
src-90ce288afefaf5e163a47fbf39f840ad6db6b30e.zip
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.
Notes
Notes: svn path=/projects/clang-sparc64/; revision=262373
Diffstat (limited to 'sys/conf/kern.mk')
-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 92425f4e5bc5..a166a11a249e 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