The branch main has been updated by mhorne:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=38e5564ecef53064c984d086a040c01100023f40

commit 38e5564ecef53064c984d086a040c01100023f40
Author:     Mitchell Horne <[email protected]>
AuthorDate: 2026-01-26 14:58:55 +0000
Commit:     Mitchell Horne <[email protected]>
CommitDate: 2026-01-26 15:12:30 +0000

    native-xtools: use static LLVM libraries
    
    Set the MK_LLVM_LINK_STATIC_LIBRARIES knob to "yes" when building the
    native-xtools target. This reverts to the behaviour prior to
    2e47f35be5dc.
    
    This avoids a build failure that occurs otherwise, where compilation
    fails looking for a libllvmprivate.so that was not built.
    
    It is unclear if this addresses the issue in all instances---some
    replies in the PRs indicate otherwise. Still, some report success, and
    in my own testing this fixed creation of a cross-compiled poudriere
    jail. Commit this while we continue to investigate...
    
    PR:             286710, 291409
    Tested by:      marck, [email protected]
    Reviewed by:    emaste
    MFC after:      3 days
    Fixes:  2e47f35be5dc ("Convert libllvm, libclang and liblldb into private 
shared libraries").
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D54815
---
 Makefile.inc1 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile.inc1 b/Makefile.inc1
index 03097d2d5209..598a78b4c767 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -3190,6 +3190,7 @@ NXBMAKEARGS+= \
        MK_DEBUG_FILES=no \
        MK_HTML=no \
        MK_LLDB=no \
+       MK_LLVM_LINK_STATIC_LIBRARIES=yes \
        MK_MAN=no \
        MK_MAN_UTILS=yes \
        MK_OFED=no \

Reply via email to