git: e991af8d3b82 - main - irc/halloy: fix build on armv7

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Sat, 16 Aug 2025 19:18:56 UTC
The branch main has been updated by fuz:

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

commit e991af8d3b8280fc68011b84d5d78b710e88e135
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-08-13 08:33:55 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-08-16 19:17:27 +0000

    irc/halloy: fix build on armv7
    
    Disable LTO to avoid an address space exhaustion on armv7.
    
    Approved by:    portmgr (build fix blanket)
    MFH:            2025Q3
---
 irc/halloy/Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/irc/halloy/Makefile b/irc/halloy/Makefile
index 4f6ec3752619..433ec950efff 100644
--- a/irc/halloy/Makefile
+++ b/irc/halloy/Makefile
@@ -26,4 +26,12 @@ post-install:
 		$${f%org.squidowl.halloy.png}halloy.png; done && \
 		${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/share/icons/hicolor)
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${ARCH:Marmv?}
+LTO_UNSAFE=	yes
+CARGO_ENV+=	CARGO_PROFILE_RELEASE_LTO=false
+.endif
+
+
+.include <bsd.port.post.mk>