Skip to content

Commit

Permalink
security/vaultwarden: fix build on armv6/armv7 and i386
Browse files Browse the repository at this point in the history
Disable LTO to avoid address space exhaustion.

Approved by:	portmgr (build fix blanket)
MFH:		2023Q4
  • Loading branch information
clausecker committed Nov 24, 2023
1 parent d91d723 commit a0dbba6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion security/vaultwarden/Makefile
Expand Up @@ -50,6 +50,14 @@ INSTALL_TARGET= install-strip
SUB_LIST= WWWGRP=${WWWGRP} \
WWWOWN=${WWWOWN}

.include <bsd.port.pre.mk>

# avoid LTO-induced address space exhaustion
.if ${ARCH:Marmv?} || ${ARCH} == i386
LTO_UNSAFE= yes
CARGO_ENV+= CARGO_PROFILE_RELEASE_LTO=false
.endif

#post-patch:
# ${REINPLACE_CMD} 's/^rust-version = "1.60"/rust-version = "1.59"/' \
# ${WRKSRC}/Cargo.toml
Expand All @@ -58,4 +66,4 @@ post-install:
${MKDIR} ${STAGEDIR}/${WWWDIR}/data
${INSTALL} -m0600 ${FILESDIR}/${PORTNAME}_conf.in ${STAGEDIR}/${WWWDIR}/data/config.json.sample

.include <bsd.port.mk>
.include <bsd.port.post.mk>

0 comments on commit a0dbba6

Please sign in to comment.