diff options
-rwxr-xr-x | util/crossgcc/buildgcc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index 8bcaf2f26a..5a15e6d9fa 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -108,7 +108,7 @@ searchtool() fi for i in "$1" "g$1" "gnu$1"; do if test -x "`which $i 2>/dev/null`"; then - if test `$i --version 2>&1 |grep -c "$search"` \ + if test `cat /dev/null | $i --version 2>&1 |grep -c "$search"` \ -gt 0; then echo $i return |