diff --git a/c_check b/c_check index 114eed60c2..c2b52c81b0 100755 --- a/c_check +++ b/c_check @@ -356,6 +356,9 @@ if [ "$compiler" = "GCC" ]; then no_avx2=0 oldgcc=0 data=`$compiler_name -dumpversion` + case "$data" in *-*) + data="${data%-*}" + esac case "$data" in *.*.*) data="${data%.*}" esac