diff options
author | emaste <emaste@FreeBSD.org> | 2016-01-11 00:43:50 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2016-01-11 00:43:50 +0000 |
commit | 3066f138bc3bf99f5cf6ec9412903d206c329cc7 (patch) | |
tree | 35061f0a7c74838402d7b6896685dbded35304d5 /sys/boot/efi/Makefile.inc | |
parent | d10ff89a31425b9a2c8478ba1f7a305136b260b1 (diff) | |
download | FreeBSD-src-3066f138bc3bf99f5cf6ec9412903d206c329cc7.zip FreeBSD-src-3066f138bc3bf99f5cf6ec9412903d206c329cc7.tar.gz |
MFC r281027: Clean up more x86 only options in the efi code.
Diffstat (limited to 'sys/boot/efi/Makefile.inc')
-rw-r--r-- | sys/boot/efi/Makefile.inc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/boot/efi/Makefile.inc b/sys/boot/efi/Makefile.inc index 58c4726..d9474dc 100644 --- a/sys/boot/efi/Makefile.inc +++ b/sys/boot/efi/Makefile.inc @@ -8,9 +8,14 @@ CFLAGS+= -march=i386 # Options used when building app-specific efi components # See conf/kern.mk for the correct set of these -CFLAGS+= -ffreestanding -fshort-wchar -Wformat -CFLAGS+= -mno-red-zone -CFLAGS+= -mno-mmx -mno-sse -mno-aes -mno-avx -msoft-float +CFLAGS+= -ffreestanding -Wformat -msoft-float LDFLAGS+= -nostdlib +.if ${MACHINE_CPUARCH} == "amd64" +CFLAGS+= -fshort-wchar +CFLAGS+= -mno-red-zone +CFLAGS+= -mno-mmx -mno-sse -mno-aes -mno-avx +.endif + + .include "../Makefile.inc" |