summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2021-04-04 10:21:44 +0000
committerhe <he@pkgsrc.org>2021-04-04 10:21:44 +0000
commit2a231adb00cd294da0dd279c0d6d48b68b7950db (patch)
tree217dc5e8222e99052f1151d40972eac25b0a7b38 /lang
parentf5c1c1f788d07bb12ff9aca291b6dbf65ac2925c (diff)
downloadpkgsrc-2a231adb00cd294da0dd279c0d6d48b68b7950db.tar.gz
We need curl and openssl buildlinked if BUILD_TARGET is "build".
This is because in that case we're not using the rust-internal copies of those libraries, governed by the rust-cargo-static option.
Diffstat (limited to 'lang')
-rw-r--r--lang/rust/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/lang/rust/Makefile b/lang/rust/Makefile
index d8e759d4240..ab28e3d3a9c 100644
--- a/lang/rust/Makefile
+++ b/lang/rust/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.224 2021/04/04 09:23:37 nia Exp $
+# $NetBSD: Makefile,v 1.225 2021/04/04 10:21:44 he Exp $
DISTNAME= rustc-1.49.0-src
PKGNAME= ${DISTNAME:S/rustc/rust/:S/-src//}
@@ -540,6 +540,14 @@ stage0-bootstrap: install
DEPENDS+= libatomic-links>=0:../../devel/libatomic-links
.endif
+.if ${BUILD_TARGET} == "build"
+# This is without rust-cargo-static option, so need these available.
+BUILDLINK_API_DEPENDS.nghttp2+= nghttp2>=1.41.0
+BUILDLINK_API_DEPENDS.curl+= curl>=7.67.0
+. include "../../www/curl/buildlink3.mk"
+. include "../../security/openssl/buildlink3.mk"
+.endif
+
.include "../../devel/zlib/buildlink3.mk"
.include "../../lang/python/tool.mk"
.include "../../mk/bsd.pkg.mk"