git: c64243b6c985 - main - mail/rspamd-devel: fix build on powerpc64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 24 Dec 2021 21:38:54 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c64243b6c985bd345ad124dc1f971530ef062845
commit c64243b6c985bd345ad124dc1f971530ef062845
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-12-24 21:33:12 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-12-24 21:33:12 +0000
mail/rspamd-devel: fix build on powerpc64
Disable LTO, due to LLVM bug.
---
mail/rspamd-devel/Makefile | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/mail/rspamd-devel/Makefile b/mail/rspamd-devel/Makefile
index 0a6d56e3172b..bba3941384fa 100644
--- a/mail/rspamd-devel/Makefile
+++ b/mail/rspamd-devel/Makefile
@@ -86,9 +86,11 @@ LUAJIT_CMAKE_OFF= -DENABLE_LUAJIT=OFF
.include <bsd.port.options.mk>
-.if ${ARCH:Mpowerpc64*}
+.if ${ARCH} == powerpc64
+CMAKE_ARGS+= -DENABLE_LTO:BOOL=OFF
+LUAJIT_LIB_DEPENDS= libluajit-5.1.so:lang/luajit-openresty
+.elif ${ARCH} == powerpc64le
LUAJIT_LIB_DEPENDS= libluajit-5.1.so:lang/luajit-openresty
-USES+= compiler:gcc-c++11-lib
.endif
post-install: