gcc50: Build with no-avx like gcc47
authorJohn Marino <draco@marino.st>
Wed, 11 Feb 2015 17:56:45 +0000 (18:56 +0100)
committerJohn Marino <draco@marino.st>
Wed, 11 Feb 2015 17:56:45 +0000 (18:56 +0100)
This check will also match newer gcc compilers from dports.

Requested-by: zrj (irc)

sys/platform/pc64/conf/kern.mk

index 98b4073..2edcc34 100644 (file)
@@ -18,7 +18,7 @@ CFLAGS+=      -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -mno-sse4 -mno-sse4a \
                -mno-sse5 
 CFLAGS+=       -mno-abm -mno-aes -mno-avx -mno-pclmul -mno-popcnt
 
-.if ${CCVER} == "gcc47"
+.if ${CCVER:Mgcc4[789]} || ${CCVER:Mgcc5*}
 CFLAGS+=       -mno-avx2 -mno-fsgsbase -mno-rdrnd -mno-f16c
 CFLAGS+=       -mno-fma -mno-fma4
 CFLAGS+=       -mno-bmi -mno-bmi2