diff options
author | emaste <emaste@FreeBSD.org> | 2016-01-11 15:30:19 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2016-01-11 15:30:19 +0000 |
commit | 617c4d1412e41c0a296a0f888f2354ac6805a892 (patch) | |
tree | b5f59adcb1fd3b1b58f1e106340fb8553ee3722c /sys/boot | |
parent | f7c85d0c105529afdb11597847e5e439c9d84260 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/boot/efi/Makefile.inc | 3 |
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 |