diff mbox

[1/2] w32: Use additional library libiberty.a

Message ID 1296855528-17009-1-git-send-email-weil@mail.berlios.de
State Accepted
Headers show

Commit Message

Stefan Weil Feb. 4, 2011, 9:38 p.m. UTC
libiberty.a is part of MinGW and provides useful functions
like ffs (MinGW) and getopt (MinGW-w64).

It is needed for w64 compilations and allows simpler code for w32.

Cc: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Blue Swirl Feb. 20, 2011, 9:04 p.m. UTC | #1
Thanks, applied both.

On Fri, Feb 4, 2011 at 11:38 PM, Stefan Weil <weil@mail.berlios.de> wrote:
> libiberty.a is part of MinGW and provides useful functions
> like ffs (MinGW) and getopt (MinGW-w64).
>
> It is needed for w64 compilations and allows simpler code for w32.
>
> Cc: Anthony Liguori <aliguori@us.ibm.com>
> Signed-off-by: Stefan Weil <weil@mail.berlios.de>
> ---
>  configure |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/configure b/configure
> index 598e8e1..7be4cd5 100755
> --- a/configure
> +++ b/configure
> @@ -474,7 +474,7 @@ if test "$mingw32" = "yes" ; then
>   QEMU_CFLAGS="-DWIN32_LEAN_AND_MEAN -DWINVER=0x501 $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"
> +  LIBS="-lwinmm -lws2_32 -liberty -liphlpapi $LIBS"
>   prefix="c:/Program Files/Qemu"
>   mandir="\${prefix}"
>   datadir="\${prefix}"
> --
> 1.7.2.3
>
>
>
diff mbox

Patch

diff --git a/configure b/configure
index 598e8e1..7be4cd5 100755
--- a/configure
+++ b/configure
@@ -474,7 +474,7 @@  if test "$mingw32" = "yes" ; then
   QEMU_CFLAGS="-DWIN32_LEAN_AND_MEAN -DWINVER=0x501 $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"
+  LIBS="-lwinmm -lws2_32 -liberty -liphlpapi $LIBS"
   prefix="c:/Program Files/Qemu"
   mandir="\${prefix}"
   datadir="\${prefix}"