From b9a30e80438983ff0b5a799a9c5f793d78b0b34d Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Fri, 3 Jun 2005 06:55:22 +0000 Subject: Match sys/boot in ensure GCC does not use x86 FP registers in integer code. Submitted by: Pawel Worach --- lib/libstand/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libstand') diff --git a/lib/libstand/Makefile b/lib/libstand/Makefile index ec5f27fc593f..69e104be9572 100644 --- a/lib/libstand/Makefile +++ b/lib/libstand/Makefile @@ -18,8 +18,9 @@ CFLAGS+= -I${.CURDIR} .if ${MACHINE_ARCH} == "alpha" CFLAGS+= -mno-fp-regs .endif -.if ${MACHINE_ARCH} == "i386" +.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} == "powerpc" CFLAGS+= -msoft-float -D_STANDALONE -- cgit v1.3