From 29204b1c4f52ea34d84da33593052ee839293bf2 Mon Sep 17 00:00:00 2001
From: Ben Gamari <ben@well-typed.com>
Date: Fri, 7 Aug 2020 10:51:37 -0400
Subject: [PATCH] configure: Fix double-negation in ld merge-objects check

We want to only run the check if ld is gold.

Fixes the fix to #17962.

(cherry picked from commit d589ef25f54862968976bc279eb6748509794566)
---
 aclocal.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aclocal.m4 b/aclocal.m4
index da283284abd2..55ce05701230 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -2527,7 +2527,7 @@ AC_DEFUN([FIND_LD],[
 # 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 -v -q "GNU gold"; then
+    if ! $1 --version | grep -q "GNU gold"; then
         # Not gold
         result=0
     elif test "$cross_compiling" = "yes"; then
-- 
GitLab