aboutsummaryrefslogtreecommitdiff
path: root/sys/boot
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2006-09-28 10:02:04 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2006-09-28 10:02:04 +0000
commit2d78e8c5f101bf20f652fa238241b0e897334510 (patch)
tree83718755e8a11349b8ef9b86657789d28a6287e3 /sys/boot
parent72ee3278740e43d14c5039c0ec4559e18f98cd6b (diff)
Notes
Diffstat (limited to 'sys/boot')
-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 9bb78daca8d02..a1cc45b4202fe 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 c1ec3a2abb130..9b53cc95ff609 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