[Spice-devel] [PATCH win-agent 6/9] mingw: compile a non-console binary

Marc-André Lureau marcandre.lureau at gmail.com
Fri May 11 09:39:15 PDT 2012


Otherwise, a console dialog pops up
---
 Makefile.am |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index a2d2dae..05c4983 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,7 +6,8 @@ INCLUDES =				\
 	$(SPICE_PROTOCOL_CFLAGS)	\
 	$(NULL)
 
-AM_CPPFLAGS=-DUNICODE -D_UNICODE
+AM_CPPFLAGS = -DUNICODE -D_UNICODE
+AM_LDFLAGS = -Wl,--subsystem,windows
 # -lversion is needed for the GetFileVersion* API which is used by vdlog.cpp
 LIBS = -lversion
 
-- 
1.7.10.1



More information about the Spice-devel mailing list