diff -urwN xc-orig/programs/Xserver/Imakefile xc/programs/Xserver/Imakefile --- xc-orig/programs/Xserver/Imakefile 2009-03-18 18:13:47.000000000 +0100 +++ xc/programs/Xserver/Imakefile 2009-07-28 02:47:19.754745601 +0200 @@ -1052,7 +1052,7 @@ #endif XWINSYSLIBS = $(FONTLIBS) $(LDPRELIBS) $(XWINX11) $(SYSLIBS) $(XWINW32) -EXTRA_LDOPTIONS = -e _mainCRTStartup +EXTRA_LDOPTIONS = -Wl,--subsystem,windows -mwindows #if HasParallelMake MakeMutex($(XWINDIRS) $(XWINOBJS) $(XWINLIB) $(XWINLIBS) $(XWINSYSLIBS))