Skip to content

Commit a0b486f

Browse files
committed
Update Makefile for Windows platform: modify LDFLAGS to use static OpenMP library for improved linking
1 parent 0219904 commit a0b486f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ MINIAUDIO_LIBS = $(BUILD_MINIAUDIO)/libminiaudio.a
6666
# Platform-specific settings
6767
ifeq ($(PLATFORM),windows)
6868
TARGET := $(DIST_DIR)/ai.dll
69-
LDFLAGS += -lbcrypt -static-libgcc -Wl,--push-state,-Bstatic,-lstdc++,-lwinpthread,-lgomp,--pop-state -shared
69+
LDFLAGS += -lbcrypt -static-libgcc -static-libgomp -Wl,--push-state,-Bstatic,-lstdc++,-lwinpthread,--pop-state -shared
7070
DEF_FILE := $(BUILD_DIR)/ai.def
7171
STRIP = strip --strip-unneeded $@
7272
else ifeq ($(PLATFORM),macos)

0 commit comments

Comments
 (0)