summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/mk/src.opts.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk
index 6fb1da083430..24f5f05de0d0 100644
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -325,6 +325,16 @@ MK_LDNS_UTILS:= no
MK_UNBOUND:= no
.endif
+.if ${MK_LLD} == "no"
+MK_LLD_IS_LD:= no
+.endif
+
+# LLD requires LLVM libraries, and we do not yet compare in-tree and host LLD
+# versions to avoid building it if they are identical.
+.if ${MK_LLD_IS_LD} != "no"
+MK_SYSTEM_COMPILER:= no
+.endif
+
.if ${MK_SOURCELESS} == "no"
MK_SOURCELESS_HOST:= no
MK_SOURCELESS_UCODE:= no