1 # $FreeBSD: head/sys/boot/efi/Makefile.inc 287227 2015-08-27 23:46:42Z imp $
5 # Options used when building app-specific efi components
6 # See conf/kern.mk for the correct set of these
9 CFLAGS+= -ffreestanding -Wformat
10 CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float
13 .if ${MACHINE_ARCH} == "x86_64"
14 CFLAGS+= -fshort-wchar
15 CFLAGS+= -mno-red-zone
19 # post binutils-2.27 ld.gold workaround for linker script handling
20 EFI_GOLD_OBJCOPY_FLAGS= -j .got -j .got.plt -j .bss