git: cc9d0192edfd - stable/13 - native-xtools: use static LLVM libraries

From: Mitchell Horne <mhorne_at_FreeBSD.org>
Date: Mon, 02 Feb 2026 15:44:45 UTC
The branch stable/13 has been updated by mhorne:

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

commit cc9d0192edfde5b7b66e9a7c81dca7c5d230eac7
Author:     Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2026-01-26 14:58:55 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2026-02-02 15:44:19 +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, rdunkle@smallcatbrain.com
    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
    
    (cherry picked from commit 38e5564ecef53064c984d086a040c01100023f40)
---
 Makefile.inc1 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile.inc1 b/Makefile.inc1
index 3b954936be23..523877540ab2 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -2850,6 +2850,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 \