pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/rust Change rust-cargo-static condition on NetBSD.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ab316d1ebbd8
branches:  trunk
changeset: 449694:ab316d1ebbd8
user:      he <he%pkgsrc.org@localhost>
date:      Sun Apr 04 08:51:20 2021 +0000

description:
Change rust-cargo-static condition on NetBSD.
Key off BUILD_TARGET instead of whether we're cross-building,
as bootstrap kits *can* be built natively (yes, the former state
was my suggestion, but on second thought this is more correct).

diffstat:

 lang/rust/options.mk |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (23 lines):

diff -r 86e178913f39 -r ab316d1ebbd8 lang/rust/options.mk
--- a/lang/rust/options.mk      Sun Apr 04 08:40:44 2021 +0000
+++ b/lang/rust/options.mk      Sun Apr 04 08:51:20 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.13 2021/03/31 16:45:08 nia Exp $
+# $NetBSD: options.mk,v 1.14 2021/04/04 08:51:20 he Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.rust
 PKG_SUPPORTED_OPTIONS+=        rust-cargo-static
@@ -14,11 +14,9 @@
 .  endif
 .endif
 
-.include "cross.mk"
-
 # Bundle OpenSSL and curl into the cargo binary when producing
-# bootstraps.
-.if ${OPSYS} == "NetBSD" && !empty(TARGET)
+# bootstraps on NetBSD.
+.if ${OPSYS} == "NetBSD" && ${BUILD_TARGET} == "dist"
 PKG_SUGGESTED_OPTIONS+=        rust-cargo-static
 .endif
 



Home | Main Index | Thread Index | Old Index