configure: Ensure that user's LD setting is respected
authorBen Gamari <ben@smart-cactus.org>
Fri, 28 Jul 2017 17:35:01 +0000 (13:35 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 28 Jul 2017 17:35:01 +0000 (13:35 -0400)
This broke in the fix for #13541.

aclocal.m4

index 0389474..11606c7 100644 (file)
@@ -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`