aboutsummaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2017-01-31 01:55:29 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2017-01-31 01:55:29 +0000
commitd9dbd70bca767f5f8604840f72d5904408e62064 (patch)
tree7b69a28dcbfdb1443a25e02a45a6c31810e8ff04 /sys/modules
parentcc59dd9ae0c6f5f03c1e37966215c514957221c4 (diff)
downloadsrc-d9dbd70bca767f5f8604840f72d5904408e62064.tar.gz
src-d9dbd70bca767f5f8604840f72d5904408e62064.zip
Update CFLAGS for clang compatibility
* Clang/llvm does not (yet) support -m(no-)spe, so make it gcc-only * Clang now supports -msoft-float, and does not appear to recognize "-disable-ppc-float-in-variadic", which appears to have been a crutch until soft-float was implemented. It's now implemented for both 32- and 64-bit. * Clang/llvm use a 'medium' code model by default for powerpc64, supporting up to 4GB TOC, and does not support the '-mminimal-toc' option. Given both of these, make -mminimal-toc gcc-only. MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=313005
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/zfs/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/modules/zfs/Makefile b/sys/modules/zfs/Makefile
index eb33a5cc54f9..9c503f96420c 100644
--- a/sys/modules/zfs/Makefile
+++ b/sys/modules/zfs/Makefile
@@ -94,7 +94,7 @@ CFLAGS+=-I${SUNW}/common
CFLAGS+=-DBUILDING_ZFS
.if ${MACHINE_ARCH} == "powerpc64"
-CFLAGS+=-mminimal-toc
+CFLAGS.gcc+=-mminimal-toc
.endif
.ifdef ZFS_DEBUG