git: 88dedd16ba65 - main - llvm-cxxfilt: Install as c++filt only with LLVM_BINUTILS

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Fri, 06 Mar 2026 15:52:51 UTC
The branch main has been updated by emaste:

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

commit 88dedd16ba659ea43bf5572a85e6f8151ee3fd87
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-03-06 15:49:22 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-03-06 15:52:37 +0000

    llvm-cxxfilt: Install as c++filt only with LLVM_BINUTILS
    
    When building WITHOUT_LLVM_BINUTILS /usr/bin/c++filt is the one from
    ELF Tool Chain.
    
    PR: 293610
    Fixes: 5d757312ad59 ("build: Retire LLVM_CXXFILT option")
    Sponsored by: The FreeBSD Foundation
---
 usr.bin/clang/llvm-cxxfilt/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/usr.bin/clang/llvm-cxxfilt/Makefile b/usr.bin/clang/llvm-cxxfilt/Makefile
index 98cc5c09f4c4..f53503378ea8 100644
--- a/usr.bin/clang/llvm-cxxfilt/Makefile
+++ b/usr.bin/clang/llvm-cxxfilt/Makefile
@@ -22,7 +22,9 @@ DEPENDFILES+=	${TGHDRS:C/$/.d/}
 DPSRCS+=	${TGHDRS}
 CLEANFILES+=	${TGHDRS} ${TGHDRS:C/$/.d/}
 
+.if ${MK_LLVM_BINUTILS} != "no"
 LINKS=		${BINDIR}/llvm-cxxfilt ${BINDIR}/c++filt
 MLINKS=		llvm-cxxfilt.1 c++filt.1
+.endif
 
 .include "../llvm.prog.mk"