diff --git a/smartdns/Makefile b/smartdns/Makefile index a735c96..3b08f81 100644 --- a/smartdns/Makefile +++ b/smartdns/Makefile @@ -104,9 +104,9 @@ define Build/Compile/smartdns-webui endef define Build/Compile/smartdns-ui - cargo install --force --locked bindgen-cli + cargo install --force --locked --root $(CARGO_HOME) bindgen-cli CARGO_BUILD_ARGS="$(if $(strip $(RUST_PKG_FEATURES)),--features "$(strip $(RUST_PKG_FEATURES))") --profile $(CARGO_PKG_PROFILE)" - +$(CARGO_PKG_VARS) CARGO_BUILD_ARGS="$(CARGO_BUILD_ARGS)" CC=$(TARGET_CC) \ + +$(CARGO_PKG_VARS) CARGO_BUILD_ARGS="$(CARGO_BUILD_ARGS)" CC="$(TARGET_CC)" \ PATH="$$(PATH):$(CARGO_HOME)/bin" \ make -C $(PKG_BUILD_DIR)/plugin/smartdns-ui endef