|
From: | JonY |
Subject: | Re: [Qemu-devel] [PATCH][RESEND] Set PTHREADLIBS to "-lpthreadGC2" for MinGW |
Date: | Sun, 17 May 2009 21:39:45 +0800 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.0 |
On 5/17/2009 20:21, Sebastian Herbszt wrote:
MinGW with pthreads-w32 requires "-lpthreadGC2" instead of "-lpthread". Signed-off-by: Sebastian Herbszt<address@hidden> --- qemu-20090426/configure.orig 2009-04-26 13:28:03.000000000 +0200 +++ qemu-20090426/configure 2009-04-26 13:36:09.000000000 +0200 @@ -1143,6 +1143,9 @@ if $cc $ARCH_CFLAGS -o $TMPE $PTHREADLIBS $TMPC 2> /dev/null ; then pthread=yes PTHREADLIBS="-lpthread" + if test "$mingw32" = "yes" ; then + PTHREADLIBS="-lpthreadGC2" + fi fi fi
Hi, I think its better to check which library exists.I have mine renamed to "libpthread.a" in MinGW because many packages expect it to be called libpthread.
I'm fine with this change if the majority agrees to it.
[Prev in Thread] | Current Thread | [Next in Thread] |