From 12e9303297bb2dc28a15664e87d6f7c863fe9033 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Mon, 12 Jul 2010 10:11:50 +0000 Subject: [PATCH] kernel: compile with -mi386 under gcc/clang to not generate SSE code in-kernel. --- kernel/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/Makefile b/kernel/Makefile index db21920cd..bea51f22c 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -18,6 +18,7 @@ LDFLAGS+= -.o CPPFLAGS+= -fno-builtin -ffreestanding -fno-stack-protector LDFLAGS+= -T arch/${ARCH}/kernel.lds LDFLAGS+= -nostdlib -L/usr/gnu/lib +CFLAGS+=-march=i386 DPADD+= ${LIBC} LDADD+= -lc .endif -- 2.44.0