mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 22:32:30 +01:00
881a94fab8
.. so that consistent compilation algorithms are used for both architectures as in practice the binaries are expected to be interchangeable (for time being). Previously i386 used default setting which were equivalent to -march=i486 -mtune=generic. The only difference is using smaller but slower "leave" instructions. Discussed with: jhb, dim MFC after: 29 days
21 lines
421 B
Makefile
21 lines
421 B
Makefile
# $FreeBSD$
|
|
|
|
BINDIR?= /boot
|
|
|
|
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
|
|
CFLAGS+= -march=i386
|
|
.endif
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
|
CFLAGS+= -m32
|
|
ACFLAGS+= -m32
|
|
LDFLAGS+= -m elf_i386_fbsd
|
|
AFLAGS+= --32
|
|
.endif
|
|
|
|
# Options used when building app-specific efi components
|
|
CFLAGS+= -ffreestanding -fshort-wchar -Wformat
|
|
LDFLAGS+= -nostdlib
|
|
|
|
.include "../Makefile.inc"
|