move SDL_LIBS Win32 hack to configure

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
This commit is contained in:
Juan Quintela 2009-08-03 14:46:25 +02:00 committed by Anthony Liguori
parent c81da56e97
commit 07d9ac4442
2 changed files with 3 additions and 4 deletions

View File

@ -441,10 +441,6 @@ ifeq ($(ARCH),ia64)
LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld
endif endif
ifdef CONFIG_WIN32
SDL_LIBS := $(filter-out -mwindows, $(SDL_LIBS)) -mconsole
endif
# profiling code # profiling code
ifdef TARGET_GPROF ifdef TARGET_GPROF
LDFLAGS+=-p LDFLAGS+=-p

3
configure vendored
View File

@ -887,6 +887,9 @@ EOF
if compile_prog "$sdl_cflags" "$sdl_libs" ; then if compile_prog "$sdl_cflags" "$sdl_libs" ; then
sdl_libs="$sdl_libs -lX11" sdl_libs="$sdl_libs -lX11"
fi fi
if test "$mingw32" = "yes" ; then
sdl_libs="`echo $sdl_libs | sed s/-mwindows//g` -mconsole"
fi
fi fi
########################################## ##########################################