On Tue, Jun 16, 2009 at 10:33 PM, Anthony Liguori
<address@hidden> wrote:
From: Anthony Liguori <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
diff --git a/Makefile b/Makefile
index 3177616..209b21f 100644
--- a/Makefile
+++ b/Makefile
@@ -208,7 +208,7 @@ keymaps.o: keymaps.c keymaps.h
sdl.o: sdl.c keymaps.h sdl_keysym.h
-sdl.o audio/sdlaudio.o: CFLAGS += $(SDL_CFLAGS)
+sdl.o audio/sdlaudio.o baum.o: CFLAGS += $(SDL_CFLAGS)
acl.o: acl.h acl.c
diff --git a/Makefile.target b/Makefile.target
index 27de4b9..0159bf7 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -730,6 +730,8 @@ LDFLAGS+=-p
main.o: CFLAGS+=-p
endif
+vl.o: CFLAGS+=$(SDL_CFLAGS)
+
vl.o: qemu-options.h
monitor.o: qemu-monitor.h
Please note that this commits breaks the Win32 port in several ways. First problem is the SDL_main definition as already pointed out on the mailing list. The other problem is that default mingw32 builds of SDL redirect stderr/stdout through the SDL_main hack (and in incorrect way too, but I will leave that for the SDL folks), so it's nearly impossible to get console output - ie. error messages or help.
The only workaround I know is to build SDL with the --disable-stdio-redirect, which is a bit annoying.