From 7b13c30604952059c337b8c6afa588fdb5b8895a Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Thu, 22 Feb 2024 01:24:11 +0000 Subject: [PATCH] Wasm-wc: Add nxt_unit.o as a dependency in the auto script Rather than calling make itself to build nxt_unit.o make nxt_unit.o a dependency of the main module build target. Reported-by: Konstantin Pavlov Signed-off-by: Andrew Clayton --- auto/modules/wasm-wasi-component | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/auto/modules/wasm-wasi-component b/auto/modules/wasm-wasi-component index 1ec5841c..52ea3428 100644 --- a/auto/modules/wasm-wasi-component +++ b/auto/modules/wasm-wasi-component @@ -99,8 +99,7 @@ all: ${NXT_WCM_MODULE} ${NXT_WCM_MODULE}: $NXT_BUILD_DIR/lib/unit/modules/$NXT_WCM_MOD_NAME -$NXT_BUILD_DIR/lib/unit/modules/$NXT_WCM_MOD_NAME: - make build/src/nxt_unit.o +$NXT_BUILD_DIR/lib/unit/modules/$NXT_WCM_MOD_NAME: build/src/nxt_unit.o $NXT_CARGO_CMD install: ${NXT_WCM_MODULE}-install