git: 0ae0e6a0265a - main - security/sequoia-sq: fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Jan 2025 23:47:25 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=0ae0e6a0265a079bd356358bde352a90dc374e29
commit 0ae0e6a0265a079bd356358bde352a90dc374e29
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-01-20 16:01:58 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-01-21 23:46:28 +0000
security/sequoia-sq: fix build on armv7
This avoids an address space exhaustion due to LTO.
Approved by: portmgr (build fix blanket)
MFH: 2025Q1
---
security/sequoia-sq/Makefile | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/security/sequoia-sq/Makefile b/security/sequoia-sq/Makefile
index 77ec91af1748..4d94f79cfbee 100644
--- a/security/sequoia-sq/Makefile
+++ b/security/sequoia-sq/Makefile
@@ -30,6 +30,13 @@ OPTIONS_SUB= yes
ELVISH_DESC= Install Elvish module
+.include <bsd.port.pre.mk>
+
+.if ${ARCH:Marmv?}
+LTO_UNSAFE= yes
+CARGO_ENV+= CARGO_PROFILE_RELEASE_LTO=false
+.endif
+
post-install-BASH-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions
${INSTALL_DATA} ${CARGO_TARGET_DIR}/shell-completions/${PORTNAME}.bash \
@@ -55,4 +62,4 @@ post-install-ZSH-on:
${CARGO_TARGET_DIR}/shell-completions/_${PORTNAME}.ps1 \
${STAGEDIR}${PREFIX}/share/zsh/site-functions
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>