fix smartdns-ui build

This commit is contained in:
bgme 2025-05-11 01:01:18 +08:00
parent 3b990cab5c
commit 3bb619a47e

View file

@ -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