Explorar o código

fix gcc check

Ralf S. Engelschall %!s(int64=24) %!d(string=hai) anos
pai
achega
0eff97744a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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=''