Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I5i0a-0001F7-EZ for qemu-devel@nongnu.org; Tue, 03 Jul 2007 09:01:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I5i0W-00016e-AM for qemu-devel@nongnu.org; Tue, 03 Jul 2007 09:01:30 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I5i0V-00016R-U6 for qemu-devel@nongnu.org; Tue, 03 Jul 2007 09:01:27 -0400 Received: from province.act-europe.fr ([212.157.227.214]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I5i0V-0008Qz-DW for qemu-devel@nongnu.org; Tue, 03 Jul 2007 09:01:27 -0400 Received: from localhost (localhost [127.0.0.1]) by filtered-province.act-europe.fr (Postfix) with ESMTP id 882221656E3 for ; Tue, 3 Jul 2007 15:01:25 +0200 (CEST) Received: from province.act-europe.fr ([127.0.0.1]) by localhost (province.act-europe.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j0oKgJi0lyIm for ; Tue, 3 Jul 2007 15:01:25 +0200 (CEST) Received: from [10.10.127.242] (dhcp-guest-242.act-europe.fr [10.10.127.242]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by province.act-europe.fr (Postfix) with ESMTP id 4B2331656CF for ; Tue, 3 Jul 2007 15:01:25 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v752.3) Message-Id: Content-Type: multipart/mixed; boundary=Apple-Mail-1--997799179 From: Tristan Gingold Date: Tue, 3 Jul 2007 15:03:50 +0200 Subject: [Qemu-devel] PATCH: fix configure for cygwin Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --Apple-Mail-1--997799179 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hi, this patch fixes two minors issue for cygwin: * --disable-kqemu didn't work for this configuration (because overridden) * -mno-cygwin was missing in the final link. Tristan. --Apple-Mail-1--997799179 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name=qemu-mingw.diff Content-Disposition: attachment; filename=qemu-mingw.diff Index: Makefile.target =================================================================== RCS file: /sources/qemu/qemu/Makefile.target,v retrieving revision 1.186 diff -c -p -r1.186 Makefile.target *** Makefile.target 30 Jun 2007 17:32:17 -0000 1.186 --- Makefile.target 3 Jul 2007 12:58:09 -0000 *************** tcp_subr.o tcp_timer.o udp.o bootp.o deb *** 494,500 **** VL_OBJS+=$(addprefix slirp/, $(SLIRP_OBJS)) endif ! VL_LDFLAGS= VL_LIBS=$(AIOLIBS) # specific flags are needed for non soft mmu emulator ifdef CONFIG_STATIC --- 494,500 ---- VL_OBJS+=$(addprefix slirp/, $(SLIRP_OBJS)) endif ! VL_LDFLAGS=$(VL_OS_LDFLAGS) VL_LIBS=$(AIOLIBS) # specific flags are needed for non soft mmu emulator ifdef CONFIG_STATIC Index: configure =================================================================== RCS file: /sources/qemu/qemu/configure,v retrieving revision 1.146 diff -c -p -r1.146 configure *** configure 23 Jun 2007 16:03:35 -0000 1.146 --- configure 3 Jul 2007 12:58:09 -0000 *************** case $targetos in *** 108,116 **** --- 108,123 ---- CYGWIN*) mingw32="yes" OS_CFLAGS="-mno-cygwin" + VL_OS_LDFLAGS="-mno-cygwin" + if [ "$cpu" = "i386" ] ; then + kqemu="yes" + fi ;; MINGW32*) mingw32="yes" + if [ "$cpu" = "i386" ] ; then + kqemu="yes" + fi ;; GNU/kFreeBSD) oss="yes" *************** if test "$mingw32" = "yes" ; then *** 390,398 **** linux="no" EXESUF=".exe" oss="no" - if [ "$cpu" = "i386" ] ; then - kqemu="yes" - fi fi # Check for gcc4, error if pre-gcc4 --- 397,402 ---- *************** echo "AR=$ar" >> $config_mak *** 714,719 **** --- 718,724 ---- echo "STRIP=$strip -s -R .comment -R .note" >> $config_mak echo "OS_CFLAGS=$OS_CFLAGS" >> $config_mak echo "OS_LDFLAGS=$OS_LDFLAGS" >> $config_mak + echo "VL_OS_LDFLAGS=$VL_OS_LDFLAGS" >> $config_mak echo "ARCH_CFLAGS=$ARCH_CFLAGS" >> $config_mak echo "ARCH_LDFLAGS=$ARCH_LDFLAGS" >> $config_mak echo "CFLAGS=$CFLAGS" >> $config_mak --Apple-Mail-1--997799179--