From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:59764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxkiJ-0007A3-LX for qemu-devel@nongnu.org; Wed, 15 Feb 2012 14:40:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RxkiF-0006uH-Ml for qemu-devel@nongnu.org; Wed, 15 Feb 2012 14:40:27 -0500 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:36576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxkiF-0006u2-IA for qemu-devel@nongnu.org; Wed, 15 Feb 2012 14:40:23 -0500 Message-ID: <4F3C0A20.5070007@weilnetz.de> Date: Wed, 15 Feb 2012 20:40:16 +0100 From: Stefan Weil MIME-Version: 1.0 References: <1329324093-6581-1-git-send-email-meadori@codesourcery.com> In-Reply-To: <1329324093-6581-1-git-send-email-meadori@codesourcery.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v1] ./configure: use -lole32 when building with mingw32 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Meador Inge Cc: qemu-devel@nongnu.org Am 15.02.2012 17:41, schrieb Meador Inge: > glib calls 'CoTaskMemFree' which is defined by ole32.dll. > Therefore when building with mingw32 -lole32 should be in > 'LIBS'. > > Signed-off-by: Meador Inge > --- > configure | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/configure b/configure > index 88521d2..40caf81 100755 > --- a/configure > +++ b/configure > @@ -502,7 +502,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 -liberty -liphlpapi $LIBS" > + LIBS="-lole32 -lwinmm -lws2_32 -liberty -liphlpapi $LIBS" > prefix="c:/Program Files/Qemu" > mandir="\${prefix}" > datadir="\${prefix}" Hi, this would be a workaround for a bug in glib-2.0. If it requires ole32.dll, it should add it to glib-2.0.pc, so pkg-config will add it to QEMU. I never had problems caused by a missing ole32.dll. Which MinGW do you use (native, cross, version), and where did you get your glib-2.0 from? My glib-2.0 has no reference to CoTaskMemFree. Regards, Stefan Weil