diff --git a/Makefile.target b/Makefile.target index d34156c12026cc536eda2dd172a7447339640dc6..9ffc0b7086279a5f89e6e7501e05d05e007cdf79 100644 --- a/Makefile.target +++ b/Makefile.target @@ -441,10 +441,6 @@ ifeq ($(ARCH),ia64) LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld endif -ifdef CONFIG_WIN32 -SDL_LIBS := $(filter-out -mwindows, $(SDL_LIBS)) -mconsole -endif - # profiling code ifdef TARGET_GPROF LDFLAGS+=-p diff --git a/configure b/configure index 3229e6c13aad2cd7a80c87cd90d9921fb5295638..a014e786b0798ccd0880c6f8fb6700fb7556af0d 100755 --- a/configure +++ b/configure @@ -887,6 +887,9 @@ EOF if compile_prog "$sdl_cflags" "$sdl_libs" ; then sdl_libs="$sdl_libs -lX11" fi + if test "$mingw32" = "yes" ; then + sdl_libs="`echo $sdl_libs | sed s/-mwindows//g` -mconsole" + fi fi ##########################################