aboutsummaryrefslogtreecommitdiff
path: root/lang/rust/rust-package.mk
diff options
context:
space:
mode:
authorOskari Rauta <oskari.rauta@gmail.com>2023-03-28 21:46:20 +0300
committerTianling Shen <cnsztl@gmail.com>2023-03-31 03:35:41 +0800
commit49782b3db407e4c870934ea379f8412befc326ff (patch)
treea2c7d95d771d24b5c36203ce505f1b5678257f88 /lang/rust/rust-package.mk
parent692fe359a9afab6a388907491f0169e155b9e0cd (diff)
rust: update to 1.68.1
also add new variable CARGO_VARS to make it possible to pass environment variables for cargo process. This is necessary when for example, cross-compiling netavark. Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
Diffstat (limited to 'lang/rust/rust-package.mk')
-rw-r--r--lang/rust/rust-package.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/lang/rust/rust-package.mk b/lang/rust/rust-package.mk
index 4e39009cc..6ab0e2399 100644
--- a/lang/rust/rust-package.mk
+++ b/lang/rust/rust-package.mk
@@ -27,7 +27,8 @@ define Build/Compile/Cargo
CARGO_HOME=$(CARGO_HOME) \
TARGET_CFLAGS="$(TARGET_CFLAGS) $(RUST_CFLAGS)" \
TARGET_CC=$(TARGET_CC_NOCACHE) \
- CC=$(HOSTCC) \
+ CC=$(HOSTCC_NOCACHE) \
+ $(CARGO_VARS) \
cargo install -v \
--profile stripped \
--target $(RUSTC_TARGET_ARCH) \