add libwinpthread to static linking

This commit is contained in:
Anthony Samms
2025-09-15 21:22:26 -04:00
parent 014395c2be
commit ddece5c985
5 changed files with 6 additions and 335 deletions

View File

@@ -65,6 +65,12 @@ ifneq (,$(findstring MINGW,$(UNAME_S)))
CORE_LIBS += -lsamplerate
endif
ifneq (,$(wildcard /mingw64/lib/libwinpthread.a))
SYSTEM_LIBS += /mingw64/lib/libwinpthread.a
else
SYSTEM_LIBS += -lwinpthread
endif
# Windows system libraries (these provide the missing symbols)
SYSTEM_LIBS = -lwinmm -lole32 -luuid -lksuser -lsetupapi -lws2_32 -ladvapi32 -luser32 -lgdi32 -lkernel32