From 05446511ab49a543ba1d38e9d668ea28e432dabb Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Tue, 30 Jan 2024 18:37:56 -0300 Subject: [PATCH] chore(deps): do not link libatomic with libwee8 on macOS --- config | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config b/config index dd13bc15d..c7b6822e3 100644 --- a/config +++ b/config @@ -31,7 +31,11 @@ case $ngx_wasm_runtime_name in ngx_wasm_runtime_srcs="$ngx_addon_dir/src/wasm/wrt/ngx_wrt_v8.c" ngx_wasm_runtime_lib_name="wee8" ngx_wasm_runtime_pre_libs="-lv8bridge" - ngx_wasm_runtime_post_libs="-ldl -lm -lpthread -lstdc++" + ngx_wasm_runtime_post_libs="-ldl -lm -lpthread -lstdc++ -latomic" + + if [ "$NGX_SYSTEM" = "Darwin" ]; then + ngx_wasm_runtime_post_libs="-ldl -lm -lpthread -lstdc++" + fi ngx_wasm_cargo_lib_name=ngx_wasm_rs ngx_wasm_cargo_lib_dir=$ngx_addon_dir/lib/ngx-wasm-rs