aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-03-10 11:14:32 +0100
committerBlue Swirl <blauwirbel@gmail.com>2012-03-11 11:28:07 +0000
commitf7cf5d5b7175ee8ee26a90cdbfbb9d5ccc560416 (patch)
treeec3379cba635630b08dcd08ba75955982c0fb1ed
parent371c6489000c2eba959aaebcb134a12ffec93c88 (diff)
downloadqemu-f7cf5d5b7175ee8ee26a90cdbfbb9d5ccc560416.zip
qemu-f7cf5d5b7175ee8ee26a90cdbfbb9d5ccc560416.tar.gz
qemu-f7cf5d5b7175ee8ee26a90cdbfbb9d5ccc560416.tar.bz2
configure: Test for libiberty.a (mingw32)
MinGW-w64 and some versions of MinGW32 don't provide libiberty.a, so add this library only if it was found. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rwxr-xr-xconfigure8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure b/configure
index 66a65d9..39d2b54 100755
--- a/configure
+++ b/configure
@@ -511,7 +511,13 @@ 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 -liberty -liphlpapi $LIBS"
+ LIBS="-lwinmm -lws2_32 -liphlpapi $LIBS"
+cat > $TMPC << EOF
+int main(void) { return 0; }
+EOF
+ if compile_prog "" "-liberty" ; then
+ LIBS="-liberty $LIBS"
+ fi
prefix="c:/Program Files/Qemu"
mandir="\${prefix}"
datadir="\${prefix}"