1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-01 17:00:36 +00:00

The flags -mno-aes -mno-avx only exist for clang, not gcc, so

add them only to the clang CFLAGS.
This commit is contained in:
Warner Losh 2015-08-20 18:31:05 +00:00
parent 7ec1b6b672
commit e30880fb35
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286967

View File

@ -14,7 +14,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
.endif