summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-09-28 10:02:04 +0000
committerru <ru@FreeBSD.org>2006-09-28 10:02:04 +0000
commit99ad5797cb69ad572667fb6e36c41297dc1bf76a (patch)
tree83718755e8a11349b8ef9b86657789d28a6287e3
parent47faa65aa96dca772285092a494687e5300265eb (diff)
downloadFreeBSD-src-99ad5797cb69ad572667fb6e36c41297dc1bf76a.zip
FreeBSD-src-99ad5797cb69ad572667fb6e36c41297dc1bf76a.tar.gz
Add -march=i386 to fix amd64 build by generating the same code
as i386 would do.
-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