From 3bb619a47e88fdee519a171af5f9859337cc1c05 Mon Sep 17 00:00:00 2001 From: bgme <i@bgme.me> Date: Sun, 11 May 2025 01:01:18 +0800 Subject: [PATCH] fix smartdns-ui build --- smartdns/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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