git: 37b37fadac55 - main - audio/gnome-podcasts: fix build on powerpc

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Tue, 14 Mar 2023 19:05:06 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=37b37fadac55531a3be39f67fb7316d850af63b0

commit 37b37fadac55531a3be39f67fb7316d850af63b0
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-03-14 19:04:30 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-03-14 19:04:30 +0000

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

diff --git a/audio/gnome-podcasts/Makefile b/audio/gnome-podcasts/Makefile
index b6db105e2416..2857169c1e46 100644
--- a/audio/gnome-podcasts/Makefile
+++ b/audio/gnome-podcasts/Makefile
@@ -32,6 +32,12 @@ CARGO_INSTALL=	no
 CARGO_TEST=	no
 GLIB_SCHEMAS=	org.gnome.Podcasts.gschema.xml
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+LTO_UNSAFE=	yes
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e '/dependency.*openssl/d' \
 		${WRKSRC}/meson.build