summaryrefslogtreecommitdiff
path: root/m4/check_for_gold_t22266.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/check_for_gold_t22266.m4')
-rw-r--r--m4/check_for_gold_t22266.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/m4/check_for_gold_t22266.m4 b/m4/check_for_gold_t22266.m4
index 73d8a73c6f..e540eb928b 100644
--- a/m4/check_for_gold_t22266.m4
+++ b/m4/check_for_gold_t22266.m4
@@ -10,7 +10,7 @@
# Sets $result to 0 if not affected, 1 otherwise
AC_DEFUN([CHECK_FOR_GOLD_T22266],[
AC_MSG_CHECKING([for ld.gold object merging bug (binutils 22266)])
- if ! $1 --version | grep -q "GNU gold"; then
+ if ! $1 --version | grep -q "GNU gold" 2>/dev/null; then
# Not gold
result=0
elif test "$cross_compiling" = "yes"; then