git: e329c603964f - main - net-im/kaccounts-integration: fix build on powerpc* with llvm < 16

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sat, 01 Jul 2023 07:30:35 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e329c603964f87f721a96e49f7ac137c3344e4c6

commit e329c603964f87f721a96e49f7ac137c3344e4c6
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-07-01 07:23:39 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-07-01 07:30:31 +0000

    net-im/kaccounts-integration: fix build on powerpc* with llvm < 16
    
    fatal error: error in backend: failed to perform tail call elimination on a call site marked musttail
---
 net-im/kaccounts-integration/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/net-im/kaccounts-integration/Makefile b/net-im/kaccounts-integration/Makefile
index 069f829bfd1a..d06a5c382a71 100644
--- a/net-im/kaccounts-integration/Makefile
+++ b/net-im/kaccounts-integration/Makefile
@@ -23,4 +23,11 @@ USE_KDE=	auth codecs config configwidgets coreaddons dbusaddons \
 USE_QT=		concurrent core dbus declarative gui network widgets xml \
 		buildtools:build qmake:build
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH:Mpowerpc*} && ${OSVERSION} < 1400092
+CXX=		clang++${LLVM_VERSION}
+USES+=		llvm:min=16
+.endif
+
 .include <bsd.port.mk>