aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2026-03-19 02:01:13 +0000
committerEd Maste <emaste@FreeBSD.org>2026-03-19 13:10:24 +0000
commitd478715a72892537d37a70efcb82ee572ac5741a (patch)
tree68299677f68e7a69815c06aab9301aaf1497b0fa
parentba4298b055642969d30389c5c92dd4d61a124fb6 (diff)
llvm: Link cross-tools with static libllvm.a
We generally use TOOLS_PREFIX being set to indicate that we are building in the cross-build tools stage. This check was missing for llvm.prog.mk consumers other than *tblgen, which have not previously been built as cross tools. Reviewed by: dim Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55930
-rw-r--r--usr.bin/clang/llvm.prog.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/clang/llvm.prog.mk b/usr.bin/clang/llvm.prog.mk
index 00f319a246fb..fa9abf020295 100644
--- a/usr.bin/clang/llvm.prog.mk
+++ b/usr.bin/clang/llvm.prog.mk
@@ -14,7 +14,7 @@ LIBPRIV=
LIBEXT= a
.else
LIBDEPS+= llvm
-.if ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes"
+.if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes"
LIBPRIV=
LIBEXT= a
.else