[Git][ghc/ghc][master] configure: Fix double-negation in ld merge-objects check

Marge Bot gitlab at gitlab.haskell.org
Sat Aug 8 03:58:50 UTC 2020



 Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
8a665db6 by Ben Gamari at 2020-08-07T23:58:45-04:00
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.
- - - - -


1 changed file:

- aclocal.m4


Changes:

=====================================
aclocal.m4
=====================================
@@ -2543,7 +2543,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



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8a665db6174eaedbbae925c0ccb4c22b3f29bcaf

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8a665db6174eaedbbae925c0ccb4c22b3f29bcaf
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200807/09b495c8/attachment.html>


More information about the ghc-commits mailing list