소스 검색

fix gcc check

Ralf S. Engelschall 24 년 전
부모
커밋
0eff97744a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      openpkg/rpmtool

+ 1 - 1
openpkg/rpmtool

@@ -412,7 +412,7 @@ case $tool in
             echo "$mflags"
         elif [ ".$opt_c" = .yes ]; then
             isgcc=no
-            if [ ".`$tool --version 2>/dev/null | grep '[23]\.[789]'`" != . ]; then
+            if [ ".`$tool --version 2>/dev/null | egrep '(2.[789]|3.[01])'`" != . ]; then
                 isgcc=yes
             fi
             cflags=''