Index: Makefile =================================================================== --- Makefile (revision 7805) +++ Makefile (working copy) @@ -32,8 +32,9 @@ CFLAGS += -I/usr/include/mingw -mwin32 else ifeq ($(OSTYPE),mingw) - CFLAGS += -DPNG_STATIC -DZLIB_STATIC - LDFLAGS += -static-libgcc -static-libstdc++ -Wl,--large-address-aware + CFLAGS += -DPNG_STATIC -DZLIB_STATIC -static +# LDFLAGS += -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread -lgcc -lz -lbz2 -Wl,-Bdynamic -Wl,--large-address-aware + LDFLAGS += -static-libgcc -static-libstdc++ -Wl,--large-address-aware -static LIBS += -lmingw32 endif endif @@ -113,7 +114,7 @@ CFLAGS += -DMULTI_THREAD ifeq ($(OSTYPE),mingw) #use lpthreadGC2d for debug alternatively - LDFLAGS += -lpthreadGC2 +# LDFLAGS += -lpthreadGC2 else ifneq ($(OSTYPE),haiku) LDFLAGS += -lpthread @@ -489,7 +490,7 @@ endif else SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags) - SDL_LDFLAGS := $(shell $(SDL_CONFIG) --libs) + SDL_LDFLAGS := $(shell $(SDL_CONFIG) --static-libs) endif CFLAGS += $(SDL_CFLAGS) LIBS += $(SDL_LDFLAGS) @@ -520,7 +521,7 @@ endif else SDL_CFLAGS := $(shell $(SDL2_CONFIG) --cflags) - SDL_LDFLAGS := $(shell $(SDL2_CONFIG) --libs) + SDL_LDFLAGS := $(shell $(SDL2_CONFIG) --static-libs) endif CFLAGS += $(SDL_CFLAGS) LIBS += $(SDL_LDFLAGS)