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
This commit is contained in:
Ed Maste
2026-03-18 22:01:13 -04:00
parent ba4298b055
commit d478715a72
+1 -1
View File
@@ -14,7 +14,7 @@ LIBPRIV=
LIBEXT= a LIBEXT= a
.else .else
LIBDEPS+= llvm LIBDEPS+= llvm
.if ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes" .if defined(TOOLS_PREFIX) || ${MK_LLVM_LINK_STATIC_LIBRARIES} == "yes"
LIBPRIV= LIBPRIV=
LIBEXT= a LIBEXT= a
.else .else