From cf43faaa9fa7924993782d7494f3cde32d7eb7e2 Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Tue, 19 Jun 2018 01:00:27 +0000 Subject: [PATCH] Don't bootstrap lld if an external linker is used. Sponsored by: Dell EMC --- Makefile.inc1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile.inc1 b/Makefile.inc1 index 2c7b403db43b..caa44e5d3ebe 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -232,6 +232,10 @@ X${BINUTIL}?= ${${BINUTIL}} .endif .endfor +# If a full path to an external linker is given, don't build lld. +.if ${XLD:M/*} +MK_LLD_BOOTSTRAP= no +.endif # We must do lib/ and libexec/ before bin/ in case of a mid-install error to # keep the users system reasonably usable. For static->dynamic root upgrades,