diff --git a/Makefile b/Makefile index ae800f9c..59f0f9bd 100644 --- a/Makefile +++ b/Makefile @@ -621,7 +621,7 @@ PIC_OBJS = \ # Note: --allow-undefined-file=linker-provided-symbols.txt is # a workaround for https://github.com/llvm/llvm-project/issues/103592 $(SYSROOT_LIB)/libc.so: $(OBJDIR)/libc.so.a $(BUILTINS_LIB) - $(CC) $(filter-out -W% -fdebug-prefix-map=% -O2 -g -DNDEBUG -fno-trapping-math, $(CFLAGS)) -nodefaultlibs -shared --sysroot=$(SYSROOT) \ + $(CC) -resource-dir C:/wasi-sdk/sysroot/install/wasi-resource-dir --target=$(TARGET_TRIPLE) -mthread-model single -isystem "C:/wasi-sdk/sysroot/install/share/wasi-sysroot/include/wasm32-wasi" -nodefaultlibs -shared --sysroot=$(SYSROOT) \ -o $@ -Wl,--whole-archive $< -Wl,--no-whole-archive $(BUILTINS_LIB) \ -Wl,--allow-undefined-file=linker-provided-symbols.txt