[commit: ghc] master: configure: Ensure that user's LD setting is respected (d08b9cc)

git at git.haskell.org git at git.haskell.org
Fri Jul 28 17:35:55 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/d08b9ccdf2812e8f8fa34d0c89275deee574524c/ghc

>---------------------------------------------------------------

commit d08b9ccdf2812e8f8fa34d0c89275deee574524c
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Fri Jul 28 13:35:01 2017 -0400

    configure: Ensure that user's LD setting is respected
    
    This broke in the fix for #13541.


>---------------------------------------------------------------

d08b9ccdf2812e8f8fa34d0c89275deee574524c
 aclocal.m4 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/aclocal.m4 b/aclocal.m4
index 0389474..11606c7 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -2283,6 +2283,7 @@ AC_DEFUN([FIND_LD],[
       [enable_ld_override=yes])
 
     if test "x$enable_ld_override" = "xyes"; then
+        TmpLd="$LD" # In case the user set LD
         AC_CHECK_TARGET_TOOLS([TmpLd], [ld.lld ld.gold ld])
 
         out=`$TmpLd --version`



More information about the ghc-commits mailing list