summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-06-08 17:53:00 -0400
committerZubin Duggal <zubin.duggal@gmail.com>2022-07-11 11:25:56 +0530
commit92cafa04a383dcb6350f6d234a6dfaa240929dfc (patch)
tree706b3b86f74a2ae0752790f1b3cdb5ef7b36308f
parent15729fbe7cc6bea38555c5180293850957929b5d (diff)
downloadhaskell-92cafa04a383dcb6350f6d234a6dfaa240929dfc.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. (cherry picked from commit cdc75a1fedfa3c0f6b3fb365247e7fbc53b9147b)
-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