summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2018-03-02 16:13:53 -0500
committerBen Gamari <ben@smart-cactus.org>2018-03-02 16:14:10 -0500
commitbc1bcaa2c0c66fb247d1338d6d0055a833918a7f (patch)
tree201fad60b788ce553cf47f31a866ace4fe59c4c8 /aclocal.m4
parent6e4fa8175677c39441f1502c58a832e79570cb0d (diff)
downloadhaskell-bc1bcaa2c0c66fb247d1338d6d0055a833918a7f.tar.gz
configure: Enable LD_NO_GOLD is set in all codepaths
Test Plan: `./configure --disable-ld-override; make; make install` Reviewers: trofi, hvr Reviewed By: trofi Subscribers: rwbarton, thomie, erikd, carter, simonmar GHC Trac Issues: #14675 Differential Revision: https://phabricator.haskell.org/D4448
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 5ad3752d71..a2fdbdc956 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -2379,12 +2379,16 @@ AC_DEFUN([FIND_LD],[
# Fallback
AC_CHECK_TARGET_TOOL([LD], [ld])
+ # This isn't entirely safe since $LD may have been discovered to be
+ $ ld.gold, but what else can we do?
+ if test "x$LD_NO_GOLD" = "x"; then LD_NO_GOLD=$LD; fi
}
if test "x$enable_ld_override" = "xyes"; then
find_ld
else
AC_CHECK_TARGET_TOOL([LD], [ld])
+ if test "x$LD_NO_GOLD" = "x"; then LD_NO_GOLD=$LD; fi
fi
CHECK_LD_COPY_BUG([$1])