Page MenuHomeFreeBSD

llvm: Link cross-tools with static libllvm.a
ClosedPublic

Authored by emaste on Mar 19 2026, 2:06 AM.
Tags
None
Referenced Files
F163122069: D55930.diff
Mon, Jul 20, 6:41 AM
F163068989: D55930.diff
Sun, Jul 19, 7:30 PM
Unknown Object (File)
Sat, Jul 18, 6:51 PM
Unknown Object (File)
Fri, Jul 17, 8:33 PM
Unknown Object (File)
Wed, Jul 15, 7:13 AM
Unknown Object (File)
Wed, Jul 15, 7:13 AM
Unknown Object (File)
Tue, Jul 14, 2:31 PM
Unknown Object (File)
Tue, Jul 14, 11:53 AM
Subscribers

Details

Summary
TOOLS_PREFIX is set during the cross-tools build; use this to link cross
tools against the static llvm lib.  This logic existed in existing cross
tools (either via clang.prog.mk or bespoke rules) but was missing from
llvm.prog.mk.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste created this revision.

Hm, at first I was confused because TOOLS_PREFIX seems to be tested in the first .if statement, but that is only for the tblgen tools. But LGTM.

usr.bin/clang/llvm.prog.mk
17

Hm, at first I was confused because TOOLS_PREFIX seems to be tested in the first .if statement, but that is only for the tblgen tools.

This revision is now accepted and ready to land.Mar 19 2026, 9:39 AM
This revision was automatically updated to reflect the committed changes.
usr.bin/clang/llvm.prog.mk
17

Yeah, and after reading your comment I realized my commit message was incorrect. Will update for commit.