From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:49312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rlp7y-0001bR-Hl for qemu-devel@nongnu.org; Fri, 13 Jan 2012 16:57:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rlp7x-0006eG-ID for qemu-devel@nongnu.org; Fri, 13 Jan 2012 16:57:38 -0500 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:40860) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rlp7x-0006eC-B4 for qemu-devel@nongnu.org; Fri, 13 Jan 2012 16:57:37 -0500 Message-ID: <4F10A8CE.3050807@weilnetz.de> Date: Fri, 13 Jan 2012 22:57:34 +0100 From: Stefan Weil MIME-Version: 1.0 References: <1324549207-23957-1-git-send-email-sw@weilnetz.de> <4F109E77.3030901@weilnetz.de> <4F10A2B0.5050902@suse.de> In-Reply-To: <4F10A2B0.5050902@suse.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2] w32: Build windows and console executables List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-15?Q?Andreas_F=E4rber?= Cc: blauwirbel@gmail.com, Anthony Liguori , qemu-devel@nongnu.org Am 13.01.2012 22:31, schrieb Andreas F=E4rber: > Am 13.01.2012 22:13, schrieb Stefan Weil: >> Am 22.12.2011 11:20, schrieb Stefan Weil: >>> System emulation executables with SDL are typically windows >>> executables. Sometimes console executables are more useful, >>> so create both variants if linker option -mwindows was detected. >>> >>> v2: >>> This version uses QEMU_PROGW / QEMU_PROG instead of QEMU_PROG / >>> QEMU_PROGC. >>> >>> Signed-off-by: Stefan Weil >>> --- >>> Makefile.target | 16 +++++++++++++++- >>> 1 files changed, 15 insertions(+), 1 deletions(-) > >> Ping? All open questions were solved, so this patch can be committed. > > No objection to this patch, just raising the question whether we might > want to compile code differently for the two targets? For example, does > -nographic make sense for the *w.exe? > > Andreas Yes, it makes sense. It's possible to run a *w.exe with stdin/stdout redirected to a pipe. The msys rxvt terminal works like that and allows -nographics. And even without such tricks, the commonly used SDL implementations redirect stdout to a file, so it is possible to run a *w.exe with -nographic and use the file (for example in automated tests which boot a Linux kernel). So I see no reason to compile both executables differently. Having executables which are binary compatible has also advantages for installers (compressing twice the same binary data should be easy). Regards, Stefan