mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add -march=i386 to fix amd64 build by generating the same code
as i386 would do.
This commit is contained in:
parent
72ee327874
commit
2d78e8c5f1
2 changed files with 2 additions and 2 deletions
|
|
@ -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/} \
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue