diff options
author | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2015-02-27 20:32:50 +0000 |
---|---|---|
committer | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2015-02-27 20:32:50 +0000 |
commit | e52a2dc83cbc674c3f009634913453fe1d0408d0 (patch) | |
tree | d5c9476577852c5c852d093c723c3db6558c9ca4 /sys/conf/kern.mk | |
parent | d4eb568e0722c99e8b9f849ebaadbb1ab00e3a1b (diff) | |
download | src-e52a2dc83cbc674c3f009634913453fe1d0408d0.tar.gz src-e52a2dc83cbc674c3f009634913453fe1d0408d0.zip |
Use appropriate alternative to -msoft-float for clang-built PowerPC kernels.
Notes
Notes:
svn path=/head/; revision=279372
Diffstat (limited to 'sys/conf/kern.mk')
-rw-r--r-- | sys/conf/kern.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 340da8c83fa0..50eaee5b9ee7 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -131,7 +131,9 @@ INLINE_LIMIT?= 8000 # Also explicitly disable Altivec instructions inside the kernel. # .if ${MACHINE_CPUARCH} == "powerpc" -CFLAGS+= -msoft-float -mno-altivec +CFLAGS+= -mno-altivec +CFLAGS.clang+= -mllvm -disable-ppc-float-in-variadic=true +CFLAGS.gcc+= -msoft-float INLINE_LIMIT?= 15000 .endif @@ -139,7 +141,7 @@ INLINE_LIMIT?= 15000 # Use dot symbols on powerpc64 to make ddb happy # .if ${MACHINE_ARCH} == "powerpc64" -CFLAGS+= -mcall-aixdesc +CFLAGS.gcc+= -mcall-aixdesc .endif # |