Skip to content

Commit 20266bc

Browse files
committed
fix(windows/Makefile): use dead_strip linker flag instead of gc-sections
1 parent 159cdd4 commit 20266bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ LDFLAGS = -L$(RUST_TARGET_DIR)/release
5555
# Platform-specific settings
5656
ifeq ($(PLATFORM),windows)
5757
TARGET := $(DIST_DIR)/mcp.dll
58-
LDFLAGS += -shared -Wl,--gc-sections
58+
LDFLAGS += -shared -Wl,--dead_strip
5959
DEF_FILE := $(BUILD_DIR)/mcp.def
6060
STRIP = strip --strip-unneeded $@
6161
LIBS = -lmcp_ffi -lws2_32 -luserenv -lbcrypt -lntdll -lgcc -lgcc_eh -lpthread

0 commit comments

Comments
 (0)