summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Clausecker <fuz@FreeBSD.org>2026-05-16 13:23:00 +0000
committerRobert Clausecker <fuz@FreeBSD.org>2026-05-16 21:37:17 +0000
commitf1707ff8961dd4e18f168052e03d4f13e899c2dd (patch)
tree5e4ce3746ea35bf00c4b423aea0bf466a9375a40
parent6a955aa9233fd27861f5bb4529fe6a5e749166a0 (diff)
-rw-r--r--devel/uv/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/devel/uv/Makefile b/devel/uv/Makefile
index 0ac38d4d7315..ec35eef27d09 100644
--- a/devel/uv/Makefile
+++ b/devel/uv/Makefile
@@ -14,7 +14,6 @@ LICENSE_COMB= dual
LICENSE_FILE_APACHE20= ${WRKSRC}/LICENSE-APACHE
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT
-BROKEN_armv7= compilation fails: rustc-LLVM ERROR: out of memory
BROKEN_i386= compilation of the libopenssl_sys-abc7d27a34743709 crate fails: ld: error: undefined symbol: __atomic_is_lock_free, etc
LIB_DEPENDS= libgit2.so:devel/libgit2 \
@@ -31,6 +30,7 @@ OPENSSLINC= /usr/include
OPENSSLLIB= /usr/lib
RUSTFLAGS+= -C link-args=-Wl,-rpath=${LOCALBASE}/lib
+CARGO_INSTALL= no
PROGS= uv \
uvx \
@@ -41,6 +41,13 @@ PLIST_FILES= ${PROGS:S/^/bin\//}
PORTSCOUT= limit:.*\..*$$ # prevent tags like perma-39
+.include <bsd.port.pre.mk>
+
+.if ${ARCH:Marmv?}
+LTO_UNSAFE= yes
+CARGO_ENV+= CARGO_PROFILE_RELEASE_LTO=false
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|/etc/uv|${PREFIX}/etc/uv|g' \
-e 's|/etc/xdg|${PREFIX}/etc/xdg|g' \
@@ -55,4 +62,4 @@ do-install:
${STAGEDIR}${PREFIX}/bin
.endfor
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>