summaryrefslogtreecommitdiffstats
path: root/sys/boot/zfs/Makefile
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2008-11-22 14:24:55 +0000
committerdfr <dfr@FreeBSD.org>2008-11-22 14:24:55 +0000
commitfbf7bda4ae92c353882069004b07e4b3edfcf5f0 (patch)
treeaff8ff45453baf3c187c0cb247f33516035b5f6e /sys/boot/zfs/Makefile
parent86c4fc01236d99ad68401d289a486d84a01cb9c0 (diff)
downloadFreeBSD-src-fbf7bda4ae92c353882069004b07e4b3edfcf5f0.zip
FreeBSD-src-fbf7bda4ae92c353882069004b07e4b3edfcf5f0.tar.gz
Fix amd64 build and re-enable gptzfsboot.
Diffstat (limited to 'sys/boot/zfs/Makefile')
-rw-r--r--sys/boot/zfs/Makefile18
1 files changed, 14 insertions, 4 deletions
diff --git a/sys/boot/zfs/Makefile b/sys/boot/zfs/Makefile
index 723233c..5a22ecd 100644
--- a/sys/boot/zfs/Makefile
+++ b/sys/boot/zfs/Makefile
@@ -9,10 +9,20 @@ CFLAGS+= -I${.CURDIR}/../common -I${.CURDIR}/../.. -I.
CFLAGS+= -I${.CURDIR}/../../../lib/libstand
CFLAGS+= -I${.CURDIR}/../../cddl/boot/zfs
-# XXX need arch-specific bootstrap CFLAGS here
-#
-CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2 \
- -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
+CFLAGS+= -ffreestanding
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
+CFLAGS+= -mpreferred-stack-boundary=2
+CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2
+.endif
+.if ${MACHINE_ARCH} == "i386"
+CFLAGS+= -mno-sse3
+.endif
+.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "arm"
+CFLAGS+= -msoft-float
+.endif
+.if ${MACHINE_ARCH} == "amd64"
+CFLAGS+= -m32 -march=i386
+.endif
CFLAGS+= -Wformat -Wall
OpenPOWER on IntegriCloud