[Git][ghc/ghc][wip/backports] configure: Fix double-negation in ld merge-objects check
Ben Gamari
gitlab at gitlab.haskell.org
Fri Aug 7 14:53:18 UTC 2020
Ben Gamari pushed to branch wip/backports at Glasgow Haskell Compiler / GHC
Commits:
29204b1c by Ben Gamari at 2020-08-07T10:53:04-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.
(cherry picked from commit d589ef25f54862968976bc279eb6748509794566)
- - - - -
1 changed file:
- aclocal.m4
Changes:
=====================================
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
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/29204b1c4f52ea34d84da33593052ee839293bf2
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/29204b1c4f52ea34d84da33593052ee839293bf2
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/c9b6f0e2/attachment.html>
More information about the ghc-commits
mailing list