git: bd1fd7747c84 - main - x11/wezterm: fix build on armv7
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Jan 2025 23:47:27 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=bd1fd7747c84e5c3b4339f939f39d2427c4d1031
commit bd1fd7747c84e5c3b4339f939f39d2427c4d1031
Author: Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2025-01-20 16:44:40 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2025-01-21 23:46:28 +0000
x11/wezterm: fix build on armv7
This avoids an address space exhaustion due to LTO.
Approved by: portmgr (build fix blanket)
MFH: 2025Q1
---
x11/wezterm/Makefile | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/x11/wezterm/Makefile b/x11/wezterm/Makefile
index 7f50393b9c29..80ee13dd4a0f 100644
--- a/x11/wezterm/Makefile
+++ b/x11/wezterm/Makefile
@@ -56,6 +56,13 @@ DOCS_BUILD_DEPENDS= mdbook:textproc/mdbook \
mdbook-mermaid:textproc/mdbook-mermaid
PORTDOCS= html
+.include <bsd.port.pre.mk>
+
+.if ${ARCH:Marmv?}
+LTO_UNSAFE= yes
+CARGO_ENV+= CARGO_PROFILE_RELEASE_LTO=false
+.endif
+
post-patch:
# Extract (snapshot) version from the port instead of .tag file
@${ECHO_CMD} '${DISTVERSIONFULL}' >${WRKSRC}/.tag
@@ -91,4 +98,4 @@ post-install:
${WRKSRC}/termwiz/data/${PORTNAME}.terminfo
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>