--- ./makefile.orig	2024-10-03 22:59:48.000000000 -0400
+++ ./makefile	2024-10-31 00:50:21.454187000 -0400
@@ -2168,8 +2168,8 @@
 
 MINGW32_NT-6.1:
 	$(MAKE) OSNAME=win32 target-init
-	$(MAKE) $(DEFINES) EXTRAOBJS="$(WIN32ASMOBJS)" \
-		CFLAGS="$(XCFLAGS) -O2 -m32 -Wl,--subsystem,windows,--output-def,cl32.def"
+	$(MAKE) OSNAME=win32 $(DEFINES) EXTRAOBJS="$(WIN32ASMOBJS)" \
+		CFLAGS="$(XCFLAGS) -O2 -m32 -Wl,--subsystem,windows,--output-def,cl32.def -DSTATIC_LIB"
 
 MINGW32_NT-10.0:
 	$(MAKE) OSNAME=win32 target-init
