Correct SDL2 statement for Windows

SDL2 can and should be statically linked. This is much more easier than
linking it dynamically and more comfortable for the user. One libs less
to care about.
This commit is contained in:
Yamagi Burmeister 2013-10-12 11:52:49 +02:00
parent 5c5a9beba5
commit ad27563ef6

View file

@ -42,9 +42,10 @@ WITH_OPENAL:=yes
# a dependency to libjpeg
WITH_RETEXTURING:=yes
# Use SDL2 instead of SDL1.2
# Disables CD audio support, because SDL2 has none.
# Use OGG/Vorbis music instead :-)
# Use SDL2 instead of SDL1.2. Disables CD audio support,
# because SDL2 has none. Use OGG/Vorbis music instead :-)
# On Windows sdl-config isn't used, so make sure that
# you've got the SDL2 headers and libs installed.
WITH_SDL2:=no
# Set the gamma via X11 and not via SDL. This works
@ -219,7 +220,7 @@ endif
# Extra LDFLAGS for SDL
ifeq ($(OSTYPE), Windows)
ifeq ($(WITH_SDL2),yes)
SDLLDFLAGS := -lSDL2
SDLLDFLAGS := -lSDL2main -lSDL2 -mwindows -lm -ldinput8 -ldxguid -ldxerr8 -luser32 -lgdi32 -lwinmm -limm32 -lole32 -loleaut32 -lshell32 -lversion -luuid
else # not SDL2
SDLLDFLAGS := -lSDL
endif # SDL2