diff --git a/depends/packages/librustzcash.mk b/depends/packages/librustzcash.mk index cc3e95077..864536d5b 100644 --- a/depends/packages/librustzcash.mk +++ b/depends/packages/librustzcash.mk @@ -40,9 +40,15 @@ define $(package)_preprocess_cmds cat $($(package)_patch_dir)/cargo.config | sed 's|CRATE_REGISTRY|$(host_prefix)/$(CRATE_REGISTRY)|' > .cargo/config endef +ifeq ($(build_os),darwin) define $(package)_build_cmds CARGO=$(HOME)/.cargo/bin/cargo RUSTC=$(HOME)/.cargo/bin/rustc $(HOME)/.cargo/bin/cargo build --package librustzcash $($(package)_build_opts) endef +else +define $(package)_build_cmds + $(host_prefix)/native/bin/cargo build --package librustzcash $($(package)_build_opts) +endef +endif define $(package)_stage_cmds mkdir $($(package)_staging_dir)$(host_prefix)/lib/ && \