x11/wezterm: fix build on armv7

This avoids an address space exhaustion due to LTO.

Approved by:	portmgr (build fix blanket)
MFH:		2025Q1
This commit is contained in:
Robert Clausecker 2025-01-20 17:44:40 +01:00
parent 0ae0e6a026
commit bd1fd7747c

View file

@ -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>