From 2a231adb00cd294da0dd279c0d6d48b68b7950db Mon Sep 17 00:00:00 2001 From: he Date: Sun, 4 Apr 2021 10:21:44 +0000 Subject: 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. --- lang/rust/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lang') 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" -- cgit v1.2.3