aboutsummaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2021-12-24 21:33:12 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2021-12-24 21:33:12 +0000
commitc64243b6c985bd345ad124dc1f971530ef062845 (patch)
tree896e1b04b78b9eddbb9e545f3e027d1c78214752 /mail
parent49d85f399dab75cca9cff6dbcedcdfb82ffbd6b0 (diff)
downloadports-c64243b6c985bd345ad124dc1f971530ef062845.tar.gz
ports-c64243b6c985bd345ad124dc1f971530ef062845.zip
mail/rspamd-devel: fix build on powerpc64
Disable LTO, due to LLVM bug.
Diffstat (limited to 'mail')
-rw-r--r--mail/rspamd-devel/Makefile6
1 files 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: