git: 5cc3cd3fdd59 - 2025Q1 - security/authenticator: fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Jan 2025 23:51:51 UTC
The branch 2025Q1 has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5cc3cd3fdd599f4a215ca1f5da0ff1e1c260f5c0
commit 5cc3cd3fdd599f4a215ca1f5da0ff1e1c260f5c0
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-01-20 15:20:56 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-01-21 23:50:47 +0000
security/authenticator: fix build on armv7
This avoids an address space exhaustion due to LTO.
Approved by: portmgr (build fix blanket)
MFH: 2025Q1
(cherry picked from commit b41f00fa8b165d4ba6d7b87ffb41ce60cdeeea80)
---
security/authenticator/Makefile | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/security/authenticator/Makefile b/security/authenticator/Makefile
index dd23b23b4c64..ff91fdb422dc 100644
--- a/security/authenticator/Makefile
+++ b/security/authenticator/Makefile
@@ -29,6 +29,13 @@ CARGO_INSTALL= no
CARGO_TEST= no
GLIB_SCHEMAS= com.belmoussaoui.Authenticator.gschema.xml
+.include <bsd.port.pre.mk>
+
+.if ${ARCH:Marmv?}
+LTO_UNSAFE= yes
+CARGO_ENV+= CARGO_PROFILE_RELEASE_LTO=false
+.endif
+
post-patch:
@${REINPLACE_CMD} -e '/gstreamer.*bad/d' \
${WRKSRC}/meson.build
@@ -36,4 +43,4 @@ post-patch:
@${REINPLACE_CMD} -e "/cargo_options =/s/ '--/&verbose', &verbose', &/" \
${WRKSRC}/src/meson.build
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>