From: Kirk Allan <kallan@suse.com>
To: qemu-devel@nongnu.org
Cc: okrishtal@parallels.com, Kirk Allan <kallan@suse.com>,
mdroth@linux.vnet.ibm.com, sw@weilnetz.de
Subject: [Qemu-devel] [PATCH v3 1/2] qga: add additional win32 cflags and libraries
Date: Thu, 28 May 2015 12:41:00 -0600 [thread overview]
Message-ID: <1432838461-2637-2-git-send-email-kallan@suse.com> (raw)
In-Reply-To: <1432838461-2637-1-git-send-email-kallan@suse.com>
Use –extra-cflags to set cflags to such as _WIN32_WINVER and WINVER to
add additional functionality offered in Windows Visat/2008 and newer.
Add the -DARCH_$ARCH cflag.
Add the iphlpapi library to use APIs such as GetAdaptersInfo and
GetAdaptersAddresses.
Signed-off-by: Kirk Allan <kallan@suse.com>
---
configure | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 9852aef..e654283 100755
--- a/configure
+++ b/configure
@@ -708,7 +708,12 @@ fi
if test "$mingw32" = "yes" ; then
EXESUF=".exe"
DSOSUF=".dll"
- QEMU_CFLAGS="-DWIN32_LEAN_AND_MEAN -DWINVER=0x501 $QEMU_CFLAGS"
+ # --extra-cflags can be used to set flags such as -DWINVER and
+ # -D_WIN32_WINNT. If -DWINVER has not be set, default to XP (0x501).
+ if [ "$QEMU_CFLAGS" = "${QEMU_CFLAGS%-DWINVER=*}" ] ; then
+ QEMU_CFLAGS="-DWINVER=0x501 $QEMU_CFLAGS"
+ fi
+ QEMU_CFLAGS="-DWIN32_LEAN_AND_MEAN -DARCH_$ARCH $QEMU_CFLAGS"
# enable C99/POSIX format strings (needs mingw32-runtime 3.15 or later)
QEMU_CFLAGS="-D__USE_MINGW_ANSI_STDIO=1 $QEMU_CFLAGS"
LIBS="-lwinmm -lws2_32 -liphlpapi $LIBS"
@@ -724,7 +729,7 @@ if test "$mingw32" = "yes" ; then
sysconfdir="\${prefix}"
local_statedir=
confsuffix=""
- libs_qga="-lws2_32 -lwinmm -lpowrprof $libs_qga"
+ libs_qga="-lws2_32 -lwinmm -lpowrprof -liphlpapi $libs_qga"
fi
werror=""
--
1.8.5.6
next prev parent reply other threads:[~2015-05-28 18:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-28 18:40 [Qemu-devel] [PATCH v3 0/2] qga: qmp_guest_network_get_interfaces for win32 Kirk Allan
2015-05-28 18:41 ` Kirk Allan [this message]
2015-05-28 22:51 ` [Qemu-devel] [PATCH v3 1/2] qga: add additional win32 cflags and libraries Eric Blake
2015-05-29 16:42 ` Kirk Allan
2015-05-28 18:41 ` [Qemu-devel] [PATCH v3 2/2] qga: win32 implementation of qmp_guest_network_get_interfaces Kirk Allan
2015-05-28 20:54 ` Denis V. Lunev
2015-05-29 10:39 ` Olga Krishtal
[not found] ` <5568437C020000760012F8A9@prv-mh.provo.novell.com>
2015-06-03 10:19 ` Olga Krishtal
2015-06-03 10:35 ` Olga Krishtal
2015-05-28 22:56 ` Eric Blake
2015-05-29 9:59 ` Olga Krishtal
2015-06-03 10:11 ` Olga Krishtal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1432838461-2637-2-git-send-email-kallan@suse.com \
--to=kallan@suse.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=okrishtal@parallels.com \
--cc=qemu-devel@nongnu.org \
--cc=sw@weilnetz.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).