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

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