git: 7ae43763b036 - main - devel/pijul: fix build on powerpc

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Wed, 11 Oct 2023 18:27:24 UTC
The branch main has been updated by pkubaj:

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

commit 7ae43763b0365f1dad58963a2d351351980a3134
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-10-11 13:02:51 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-10-11 18:26:48 +0000

    devel/pijul: fix build on powerpc
    
    LLVM ERROR: out of memory
---
 devel/pijul/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/devel/pijul/Makefile b/devel/pijul/Makefile
index 0f2e36c1cd4f..2123b87b2916 100644
--- a/devel/pijul/Makefile
+++ b/devel/pijul/Makefile
@@ -382,6 +382,12 @@ CARGO_CRATES=	${PORTNAME}-1.0.0-beta.6 \
 
 PLIST_FILES=	bin/pijul
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+LTO_UNSAFE=	yes
+.endif
+
 post-patch:
 	${MV} ${WRKSRC}/cargo-crates/pijul-1.0.0-beta.6/* ${WRKSRC}/