--- a/Makefile.am	2011-12-26 14:59:13.048205313 +0100
+++ b/Makefile.am	2011-12-26 15:00:09.748205342 +0100
@@ -144,7 +144,11 @@
 	$(LIBRSVG_CFLAGS) 	\
 	$(AM_CFLAGS)
 
+if OS_WIN32
+rsvg_view_LDFLAGS = -mwindows
+else
 rsvg_view_LDFLAGS =
+endif
 
 rsvg_view_LDADD = \
 	$(top_builddir)/librsvg-@RSVG_API_MAJOR_VERSION@.la \
@@ -167,7 +171,11 @@
 	$(LIBRSVG_CFLAGS) 	\
 	$(AM_CFLAGS)
 
+if OS_WIN32
+rsvg_view_3_LDFLAGS = -mwindows
+else
 rsvg_view_3_LDFLAGS =
+endif
 
 rsvg_view_3_LDADD = \
 	$(top_builddir)/librsvg-@RSVG_API_MAJOR_VERSION@.la \
