summaryrefslogtreecommitdiffstats
path: root/sys/boot/efi/Makefile.inc
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2016-01-11 15:30:19 +0000
committeremaste <emaste@FreeBSD.org>2016-01-11 15:30:19 +0000
commit617c4d1412e41c0a296a0f888f2354ac6805a892 (patch)
treeb5f59adcb1fd3b1b58f1e106340fb8553ee3722c /sys/boot/efi/Makefile.inc
parentf7c85d0c105529afdb11597847e5e439c9d84260 (diff)
downloadFreeBSD-src-617c4d1412e41c0a296a0f888f2354ac6805a892.zip
FreeBSD-src-617c4d1412e41c0a296a0f888f2354ac6805a892.tar.gz
MFC r286967 by imp: use -mno-aes and -mno-avx flags only with Clang
The flags -mno-aes -mno-avx only exist for clang, not [base] gcc, so add them only to the clang CFLAGS.
Diffstat (limited to 'sys/boot/efi/Makefile.inc')
-rw-r--r--sys/boot/efi/Makefile.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/boot/efi/Makefile.inc b/sys/boot/efi/Makefile.inc
index 2b5f1ee..83db76a 100644
--- a/sys/boot/efi/Makefile.inc
+++ b/sys/boot/efi/Makefile.inc
@@ -15,7 +15,8 @@ LDFLAGS+= -nostdlib
.if ${MACHINE_CPUARCH} == "amd64"
CFLAGS+= -fshort-wchar
CFLAGS+= -mno-red-zone
-CFLAGS+= -mno-mmx -mno-sse -mno-aes -mno-avx
+CFLAGS+= -mno-mmx -mno-sse
+CFLAGS.clang+= -mno-aes -mno-avx
CFLAGS+= -msoft-float
.endif
OpenPOWER on IntegriCloud