0ed36875f4
I think all we really need is -fno-sse2. I really don't like cluttering up the compiler invocation, but this bigger hammer will fix reported problems for now.
27 lines
515 B
Makefile
27 lines
515 B
Makefile
# Common defines for all of /sys/boot/i386/
|
|
#
|
|
# $FreeBSD$
|
|
|
|
BINDIR?= /boot
|
|
|
|
LOADER_ADDRESS?=0x200000
|
|
CFLAGS+= -ffreestanding -mpreferred-stack-boundary=2 \
|
|
-mno-mmx -mno-3dnow -mno-sse -mno-sse2
|
|
LDFLAGS+= -nostdlib
|
|
|
|
.if ${MACHINE_ARCH} == "amd64"
|
|
CFLAGS+= -m32
|
|
LDFLAGS+= -m elf_i386_fbsd
|
|
AFLAGS+= --32
|
|
.endif
|
|
|
|
# BTX components
|
|
.if exists(${.OBJDIR}/../btx)
|
|
BTXDIR= ${.OBJDIR}/../btx
|
|
.else
|
|
BTXDIR= ${.CURDIR}/../btx
|
|
.endif
|
|
BTXLDR= ${BTXDIR}/btxldr/btxldr
|
|
BTXKERN= ${BTXDIR}/btx/btx
|
|
BTXCRT= ${BTXDIR}/lib/crt0.o
|