summaryrefslogtreecommitdiff
path: root/lang/rust
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2020-05-18 16:33:44 +0000
committerwiz <wiz@pkgsrc.org>2020-05-18 16:33:44 +0000
commitfa2c8461dfd66168e10288af581af8b25dcbf280 (patch)
treedf432200e185d8f118a23bb67fdfd885a590288c /lang/rust
parent8fb67e0b10c68d2fd725f533c12b2794025a8602 (diff)
downloadpkgsrc-fa2c8461dfd66168e10288af581af8b25dcbf280.tar.gz
rust: if variables are supposed to be overridable, set them with ?=
Diffstat (limited to 'lang/rust')
-rw-r--r--lang/rust/type.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/lang/rust/type.mk b/lang/rust/type.mk
index 01b3236a13f..d2267eebb36 100644
--- a/lang/rust/type.mk
+++ b/lang/rust/type.mk
@@ -1,4 +1,4 @@
-# $NetBSD: type.mk,v 1.1 2020/05/18 16:17:20 nia Exp $
+# $NetBSD: type.mk,v 1.2 2020/05/18 16:33:44 wiz Exp $
#
# This file determines the type of rust package to use -
# binary (as via rustup) or a source bootstrap.
@@ -20,9 +20,9 @@
# The Rust bootstrapping process is often particularly slow
# and unreliable on NetBSD due to ld.so bugs
. if !empty(MACHINE_PLATFORM:MNetBSD-*-x86_64)
-RUST_TYPE= bin
+RUST_TYPE?= bin
. else
-RUST_TYPE= src
+RUST_TYPE?= src
. endif
.endif # !defined(RUST_TYPE)