summaryrefslogtreecommitdiffstats
path: root/sys/boot/zfs
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2015-08-27 23:46:42 +0000
committerimp <imp@FreeBSD.org>2015-08-27 23:46:42 +0000
commitd1be0bf24ec398e1f5f1634ccfb0a2e102caf3dc (patch)
tree4b5ef87fae8f2c0ca7f1556f0b1c771c81437d7b /sys/boot/zfs
parent05c9f26dff59dbf912171e997071d42c9f2c866e (diff)
downloadFreeBSD-src-d1be0bf24ec398e1f5f1634ccfb0a2e102caf3dc.zip
FreeBSD-src-d1be0bf24ec398e1f5f1634ccfb0a2e102caf3dc.tar.gz
Use CFLAGS_NO_SIMD in preference to varying lists of -mno-xxxx flags.
Go ahead and defined -D_STANDALONE for all targets (only strictly needed for some architecture, but harmless on those it isn't required for). Also add -msoft-float to all architectures uniformly rather that higgley piggley like it is today. Differential Revision: https://reviews.freebsd.org/D3496
Diffstat (limited to 'sys/boot/zfs')
-rw-r--r--sys/boot/zfs/Makefile7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/boot/zfs/Makefile b/sys/boot/zfs/Makefile
index 2407643..6f8c26b 100644
--- a/sys/boot/zfs/Makefile
+++ b/sys/boot/zfs/Makefile
@@ -10,14 +10,8 @@ CFLAGS+= -I${.CURDIR}/../common -I${.CURDIR}/../.. -I.
CFLAGS+= -I${.CURDIR}/../../../lib/libstand
CFLAGS+= -I${.CURDIR}/../../cddl/boot/zfs
-CFLAGS+= -ffreestanding
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
CFLAGS+= -march=i386
-CFLAGS.gcc+= -mpreferred-stack-boundary=2
-CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
-.endif
-.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm"
-CFLAGS+= -msoft-float
.endif
.if ${MACHINE_CPUARCH} == "amd64"
CFLAGS+= -m32
@@ -31,6 +25,7 @@ machine:
ln -sf ${.CURDIR}/../../i386/include machine
.endif
+.include <bsd.stand.mk>
.include <bsd.lib.mk>
.if ${MACHINE_CPUARCH} == "amd64"
OpenPOWER on IntegriCloud