浏览代码

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

Rich Felker 13 年之前
父节点
当前提交
bc63e4fa2c
共有 1 个文件被更改,包括 1 次插入1 次删除
  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
 if test -z "$wrapper" ; then
 printf "checking whether compiler is gcc... "
 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
 echo yes
 printf "checking whether to build musl-gcc wrapper... "
 printf "checking whether to build musl-gcc wrapper... "
 wrapper=yes
 wrapper=yes