diff --git a/openpkg/rpmtool b/openpkg/rpmtool index 6eb374de72..1fa8ad6689 100644 --- a/openpkg/rpmtool +++ b/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=''