summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/boot/ficl/Makefile2
-rw-r--r--sys/boot/i386/Makefile.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/ficl/Makefile b/sys/boot/ficl/Makefile
index 9bb78da..a1cc45b 100644
--- a/sys/boot/ficl/Makefile
+++ b/sys/boot/ficl/Makefile
@@ -42,7 +42,7 @@ SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \
#SOFTWORDS+= oo.fr classes.fr
.if ${MACHINE_ARCH} == "amd64"
-CFLAGS+= -m32 -I.
+CFLAGS+= -m32 -march=i386 -I.
.endif
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${MACHINE_ARCH:S/amd64/i386/} \
diff --git a/sys/boot/i386/Makefile.inc b/sys/boot/i386/Makefile.inc
index c1ec3a2..9b53cc9 100644
--- a/sys/boot/i386/Makefile.inc
+++ b/sys/boot/i386/Makefile.inc
@@ -10,7 +10,7 @@ CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2 \
LDFLAGS+= -nostdlib
.if ${MACHINE_ARCH} == "amd64"
-CFLAGS+= -m32
+CFLAGS+= -m32 -march=i386
LDFLAGS+= -m elf_i386_fbsd
AFLAGS+= --32
.endif
OpenPOWER on IntegriCloud