Remember to set -static for source file compilation, not just linking. Use the correct

protoc on mingw.
This commit is contained in:
David Given
2025-09-21 17:49:17 +02:00
parent 6e03bc604a
commit 47a9a56959

View File

@@ -16,21 +16,22 @@ ifeq ($(BUILDTYPE),windows)
-ffunction-sections \
-fdata-sections \
-Wno-attributes \
-Wa,-mbig-obj
-Wa,-mbig-obj \
-static
CXXFLAGS += \
-std=c++23 \
-Wno-deprecated-enum-float-conversion \
-Wno-deprecated-enum-enum-conversion \
-Wno-attributes \
-U__GXX_TYPEINFO_EQUALITY_INLINE \
-D__GXX_TYPEINFO_EQUALITY_INLINE \
-Wa,-mbig-obj
-Wa,-mbig-obj \
-static
LDFLAGS += -Wl,--gc-sections -static
AR = $(MINGW)gcc-ar
PKG_CONFIG = $(MINGW)pkg-config --static
WINDRES = $(MINGW)windres
WX_CONFIG = /usr/i686-w64-mingw32/sys-root/mingw/bin/wx-config-3.0 --static=yes
NINJA = /bin/ninja
PROTOC = /mingw64/bin/protoc
PROTOC_SEPARATOR = ;
EXT = .exe