summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-06-08 17:53:00 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-06-15 20:33:04 -0400
commitcdc75a1fedfa3c0f6b3fb365247e7fbc53b9147b (patch)
tree4b7184f6dad6ca86c6ad6b5c5a8e05a6a0ecad0d /m4
parentaa9d9381e5c5d7b96966d817372085897585ecdd (diff)
downloadhaskell-cdc75a1fedfa3c0f6b3fb365247e7fbc53b9147b.tar.gz
configure: Hide spurious warning from ld
Previously the check_for_gold_t22266 configure check could result in spurious warnings coming from the linker being blurted to stderr. Suppress these by piping stderr to /dev/null.
Diffstat (limited to '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