Explorar o código

correct the check for gcc (previous version failed for cross compilers)

Rich Felker %!s(int64=13) %!d(string=hai) anos
pai
achega
bc63e4fa2c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      configure

+ 1 - 1
configure

@@ -148,7 +148,7 @@ test -n "$CC" || { echo "$0: cannot find a C compiler" ; exit 1 ; }
 #
 if test -z "$wrapper" ; then
 printf "checking whether compiler is gcc... "
-if fnmatch 'gcc*|GCC*' "$("$CC" --version 2>/dev/null)" ; then
+if fnmatch '*(GCC)*' "$("$CC" --version 2>/dev/null)" ; then
 echo yes
 printf "checking whether to build musl-gcc wrapper... "
 wrapper=yes