git: 58d81ef213b8 - main - textproc/typst: disable LTO on powerpc to fix build

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sun, 11 Feb 2024 11:49:56 UTC
The branch main has been updated by pkubaj:

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

commit 58d81ef213b811e52012d2b391a2c65227b20334
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-02-09 15:31:28 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-02-11 11:48:56 +0000

    textproc/typst: disable LTO on powerpc to fix build
    
    LLVM ERROR: out of memory
---
 textproc/typst/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/textproc/typst/Makefile b/textproc/typst/Makefile
index 95fe9bf8dd4c..68695510bb49 100644
--- a/textproc/typst/Makefile
+++ b/textproc/typst/Makefile
@@ -16,6 +16,12 @@ USE_GITHUB=	yes
 
 PLIST_FILES=	bin/${PORTNAME}
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+LTO_UNSAFE=	yes
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKDIR}/target/*/release/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}