Skip to content

Commit

Permalink
fix mingw native builds
Browse files Browse the repository at this point in the history
  • Loading branch information
asiekierka committed Jan 20, 2024
1 parent df94157 commit d0d7998
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ LDFLAGS = -g -O3 -flto -std=gnu18 -Wall

ifeq (${PLATFORM},mingw32-sdl)
USE_SDL = 1
ifneq (${ARCH},)
ifneq (${USE_CLANG},)
CC = ${ARCH}-w64-mingw32-clang
else
CC = ${ARCH}-w64-mingw32-gcc
endif
endif
CFLAGS += -mwindows
LIBS = -Wl,-Bstatic -lmingw32 -lwinpthread -lm -lgcc -lSDL2main -lpng -lz -lssp -Wl,-Bdynamic -lSDL2 -lopengl32
TARGET = $(BUILDDIR)/zeta86.exe
Expand Down

0 comments on commit d0d7998

Please sign in to comment.