aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/efi/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/efi/Makefile.inc')
-rw-r--r--sys/boot/efi/Makefile.inc7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/boot/efi/Makefile.inc b/sys/boot/efi/Makefile.inc
index 33ce9d2f5fcb..9ed0cdaa71d6 100644
--- a/sys/boot/efi/Makefile.inc
+++ b/sys/boot/efi/Makefile.inc
@@ -4,19 +4,18 @@ BINDIR?= /boot
.if ${MACHINE_CPUARCH} == "i386"
CFLAGS+= -march=i386
+CFLAGS+= -mno-aes
.endif
# Options used when building app-specific efi components
# See conf/kern.mk for the correct set of these
-CFLAGS+= -ffreestanding -Wformat -msoft-float
+CFLAGS+= -ffreestanding -Wformat -msoft-float ${CFLAGS_NO_SIMD}
LDFLAGS+= -nostdlib
.if ${MACHINE_CPUARCH} == "amd64"
CFLAGS+= -fshort-wchar
CFLAGS+= -mno-red-zone
-CFLAGS+= -mno-mmx -mno-sse
-CFLAGS.clang+= -mno-aes -mno-avx
+CFLAGS+= -mno-aes
.endif
-
.include "../Makefile.inc"