From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M5gau-0002h3-Lx for qemu-devel@nongnu.org; Sun, 17 May 2009 09:40:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M5gaq-0002gY-3u for qemu-devel@nongnu.org; Sun, 17 May 2009 09:40:00 -0400 Received: from [199.232.76.173] (port=55376 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5gap-0002gS-Sj for qemu-devel@nongnu.org; Sun, 17 May 2009 09:39:55 -0400 Received: from mail-pz0-f187.google.com ([209.85.222.187]:59623) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from <10walls@gmail.com>) id 1M5gap-0007wq-BE for qemu-devel@nongnu.org; Sun, 17 May 2009 09:39:55 -0400 Received: by pzk17 with SMTP id 17so1541377pzk.4 for ; Sun, 17 May 2009 06:39:53 -0700 (PDT) Message-ID: <4A1013A1.20003@gmail.com> Date: Sun, 17 May 2009 21:39:45 +0800 From: JonY <10walls@gmail.com> MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH][RESEND] Set PTHREADLIBS to "-lpthreadGC2" for MinGW References: <1242562870$1643@local> In-Reply-To: <1242562870$1643@local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sebastian Herbszt Cc: qemu-devel@nongnu.org On 5/17/2009 20:21, Sebastian Herbszt wrote: > MinGW with pthreads-w32 requires "-lpthreadGC2" instead of "-lpthread". > > Signed-off-by: Sebastian Herbszt > > --- 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.