Merge pull request #156 from GirianSeed/fix-msys-build

Fix Windows MSYS2 builds
This commit is contained in:
Dominic Szablewski
2025-06-14 13:38:18 +02:00
committed by GitHub
2 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@@ -5,6 +5,7 @@
/build/
/wipegame
/wipegame.exe
/save.dat
.DS_STORE
gamecontrollerdb.txt

View File

@@ -73,9 +73,9 @@ else ifeq ($(shell uname -o), Msys)
L_FLAGS := $(L_FLAGS) -lglew32 -lopengl32
endif
C_FLAGS := $(C_FLAGS) -DSDL_MAIN_HANDLED -D__MSYS__
L_FLAGS_SDL = -lSDL2 -lSDL2main
L_FLAGS_SOKOL = --pthread -ldl -lasound
C_FLAGS := $(C_FLAGS) -DSDL_MAIN_HANDLED
L_FLAGS_SDL := $(shell sdl2-config --libs)
L_FLAGS_SOKOL = --pthread -lgdi32 -lole32
# Windows NON-MSYS ---------------------------------------------------------------