aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2018-06-19 01:00:27 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2018-06-19 01:00:27 +0000
commitcf43faaa9fa7924993782d7494f3cde32d7eb7e2 (patch)
tree8cf752ee574886fcf0095aa8b4bb7439aefa9ec2 /Makefile.inc1
parentb605d9cd514a5d9ae5a25214faee81141a293dd0 (diff)
downloadsrc-cf43faaa9fa7924993782d7494f3cde32d7eb7e2.tar.gz
src-cf43faaa9fa7924993782d7494f3cde32d7eb7e2.zip
Don't bootstrap lld if an external linker is used.
Sponsored by: Dell EMC
Notes
Notes: svn path=/head/; revision=335353
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc14
1 files changed, 4 insertions, 0 deletions
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,