Switch Windows to dynamic binaries

This commit is contained in:
Yamagi Burmeister 2015-09-08 18:09:56 +02:00
parent 0eb660609b
commit 9e4d26399e

View file

@ -233,7 +233,7 @@ LDFLAGS := -L/usr/local/lib -lm
else ifeq ($(OSTYPE),OpenBSD) else ifeq ($(OSTYPE),OpenBSD)
LDFLAGS := -L/usr/local/lib -lm LDFLAGS := -L/usr/local/lib -lm
else ifeq ($(OSTYPE),Windows) else ifeq ($(OSTYPE),Windows)
LDFLAGS := -L/custom/lib -static -lws2_32 -lwinmm LDFLAGS := -L/custom/lib -lws2_32 -lwinmm
else ifeq ($(OSTYPE), Darwin) else ifeq ($(OSTYPE), Darwin)
LDFLAGS := $(OSX_ARCH) -lm LDFLAGS := $(OSX_ARCH) -lm
endif endif
@ -243,7 +243,7 @@ endif
# Extra LDFLAGS for SDL # Extra LDFLAGS for SDL
ifeq ($(OSTYPE), Windows) ifeq ($(OSTYPE), Windows)
ifeq ($(WITH_SDL2),yes) ifeq ($(WITH_SDL2),yes)
SDLLDFLAGS := $(shell /custom/bin/sdl2-config --static-libs) SDLLDFLAGS := $(shell /custom/bin/sdl2-config --libs)
else # not SDL2 else # not SDL2
SDLLDFLAGS := -lSDL SDLLDFLAGS := -lSDL
endif # SDL2 endif # SDL2