Skip to content

Commit

Permalink
Use SDL2 config for linker
Browse files Browse the repository at this point in the history
  • Loading branch information
lazd committed Oct 17, 2018
1 parent 82ee70f commit 5507123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ INSTALL_MAN ?= $(INSTALL) -m 444
INSTALL_DATA ?= $(INSTALL) -m 444


SDL_CONFIG ?= sdl-config
SDL_CONFIG ?= sdl2-config
CFLAGS_SDL ?= $(shell $(SDL_CONFIG) --cflags)
LDFLAGS_SDL ?= $(shell $(SDL_CONFIG) --libs)

Expand Down Expand Up @@ -40,7 +40,7 @@ CCFLAGS += -Wsequence-point
CXXFLAGS += $(CFLAGS)

LDFLAGS += $(LDFLAGS_SDL)
LDFLAGS += -lSDL_mixer
LDFLAGS += -lSDL2_mixer
ifneq (,$(findstring MINGW,$(shell uname -s)))
LDFLAGS += -static-libgcc
endif
Expand Down

0 comments on commit 5507123

Please sign in to comment.