diff options
author | dim <dim@FreeBSD.org> | 2014-02-23 17:25:53 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-02-23 17:25:53 +0000 |
commit | f05fef4a19a297b8a71f10c26de0f22d5676a811 (patch) | |
tree | c4e30039db7b17a4cde51ba78c15d0ddd854b40d /sys/conf | |
parent | c6424a2503905a893f3add62cc7bc70b3c25ebdf (diff) | |
download | FreeBSD-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.mk | 4 |
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 |