Received: from eggs.gnu.org ([2001:4830:134:3::10]:48419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yzo9b-00074h-Ng for qemu-devel@nongnu.org; Tue, 02 Jun 2015 11:31:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yzo9X-0002Ik-HE for qemu-devel@nongnu.org; Tue, 02 Jun 2015 11:30:59 -0400 Received: from prv-mh.provo.novell.com ([137.65.248.74]:34865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yzo9X-0002Ia-3B for qemu-devel@nongnu.org; Tue, 02 Jun 2015 11:30:55 -0400 Message-Id: <556D77CC020000760012FDBB@prv-mh.provo.novell.com> Date: Tue, 02 Jun 2015 09:30:52 -0600 From: "Kirk Allan" References: <1433184977-20001-1-git-send-email-kallan@suse.com> <1433184977-20001-2-git-send-email-kallan@suse.com> <556CBF6B.2060202@redhat.com> <556C7819020000760012FC6E@prv-mh.provo.novell.com> <556DB8C1.8090605@redhat.com> In-Reply-To: <556DB8C1.8090605@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Re: [Qemu-devel] [PATCH v4 1/2] qga: add additional win32 cflags and libraries List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, Paolo Bonzini Cc: okrishtal@parallels.com, alex.bennee@linaro.org, mdroth@linux.vnet.ibm.com, sw@weilnetz.de >>> >=20 > On 01/06/2015 23:19, Kirk Allan wrote: >>> Elsewhere on the list, we've discussed putting extra cflags >>> _after_ the configure-detected QEMU_CFLAGS. This would fix the >>> issue in the first part of this patch too. >>=20 >> By the time this portion of the configure script executes, any >> --extra-cflags have already been rolled into the QEMU_CFLAGS. Here >> I'm just checking if WINVER is already contained in QEMU_CFLAGS. If >> it is not, then add WINVER=3D0x501 to the flags as it was done before. >> If it's already contained in the QEMU_CFLAGS, just use what's there. >> The only ordering difference would be WINVER now comes before >> WIN32_LEAN_AND_MEAN. >=20 > If the extra cflags come last, they override the -DWINVER=3D0x501 that > configure adds, and this patch isn't necessary anymore. I was assuming that if you set _WIN32_WINNT=3D0x0600 (needed to gain = access to the OnLinkPrefixLength field when running on Windows Vista/2008 = and greater) you would also want to set WINVER=3D0x600 to match. Having = WINVER in the flags as both 501 and 600 causes configure errors. Testing with _WIN32_WINNT=3D0x0600 and WINVER=3D0x501 seems to be ok. I'll remove the first portion of the patch and just leave adding -liphlpapi= . >=20 > Paolo