This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Windows server executable (as opposed to current CLI executable)
- To: Harold Hunt <huntharo at msu dot edu>
- Subject: Re: Windows server executable (as opposed to current CLI executable)
- From: Alan Hourihane <alanh at fairlite dot demon dot co dot uk>
- Date: Sun, 29 Apr 2001 13:55:16 +0100
- Cc: "Cygx (E-mail)" <cygwin-xfree at sources dot redhat dot com>
- References: <000d01c0d01e$f9597680$2fab0a23@huntharo>
On Sat, Apr 28, 2001 at 04:08:20PM -0400, Harold Hunt wrote:
> I'd like to make the server a Windows executable, rather than a CLI
> executable, as this gets rid of the annoying command prompt window that
> opens with each server window. I have found, built, and tested the extra
> compilation flags needed to make the server a Windows executable; simply add
> the following flags to the final link of XWin.exe:
>
> -mwindows -e _mainCRTStartup
>
> There are two things holding me up from committing these changes:
> 1) I don't know how to specify flags to be used only when linking the server
> executable.
> 2) stderr needs to be redirected to a file; however, it doesn't make sense
> to pursue this until (1) has been addressed.
>
> Any help and/or tips would be appreciated,
>
In the Xserver/Imakefile in the XWin section define this.
EXTRA_LDOPTIONS = -mwindows -e _mainCRTStartup
That should do the trick.
Alan.