Skip to content

Commit 4e0f9ef

Browse files
committed
fix(build): resolve symbol conflicts for GGML_STATIC Windows builds
1 parent c9f533f commit 4e0f9ef

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,10 @@ ifeq ($(PLATFORM),windows)
181181
STRIP = strip --strip-unneeded $@
182182
else
183183
LDFLAGS += -shared -lbcrypt -lgomp -lstdc++
184+
# Fix for GGML_STATIC Windows builds - resolve symbol conflicts
185+
ifneq (,$(findstring GGML_STATIC=ON,$(LLAMA)))
186+
LDFLAGS += -Wl,--allow-multiple-definition
187+
endif
184188
# Add support for dynamic backend loading
185189
ifneq (,$(findstring GGML_BACKEND_DL=ON,$(LLAMA)))
186190
LDFLAGS += -ldl

0 commit comments

Comments
 (0)