git: 4e7c0c06bb76 - main - mail/rspamd: fix build on powerpc64

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sat, 06 Nov 2021 23:59:15 UTC
The branch main has been updated by pkubaj:

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

commit 4e7c0c06bb768b01fd8fe7522ef144bef962d493
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-11-06 23:57:24 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-11-06 23:57:24 +0000

    mail/rspamd: fix build on powerpc64
    
    LTO on powerpc64 with LLVM is broken.
---
 mail/rspamd/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mail/rspamd/Makefile b/mail/rspamd/Makefile
index 20fd9dda478c..b5408a3d0221 100644
--- a/mail/rspamd/Makefile
+++ b/mail/rspamd/Makefile
@@ -83,6 +83,10 @@ LUAJIT_CMAKE_OFF=	-DENABLE_LUAJIT=OFF
 LUAJIT_LIB_DEPENDS=	libluajit-5.1.so:lang/luajit-openresty
 .endif
 
+.if ${ARCH} == powerpc64
+CMAKE_ARGS+=		-DENABLE_LTO:BOOL=OFF
+.endif
+
 post-install:
 	@${MKDIR} \
 		${STAGEDIR}/var/log/rspamd \