From: JonY <10walls@gmail.com>
To: Sebastian Herbszt <herbszt@gmx.de>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH][RESEND] Set PTHREADLIBS to "-lpthreadGC2" for MinGW
Date: Sun, 17 May 2009 21:39:45 +0800 [thread overview]
Message-ID: <4A1013A1.20003@gmail.com> (raw)
In-Reply-To: <1242562870$1643@local>
On 5/17/2009 20:21, Sebastian Herbszt wrote:
> MinGW with pthreads-w32 requires "-lpthreadGC2" instead of "-lpthread".
>
> Signed-off-by: Sebastian Herbszt<herbszt@gmx.de>
>
> --- 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.
next prev parent reply other threads:[~2009-05-17 13:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-17 12:21 [Qemu-devel] [PATCH][RESEND] Set PTHREADLIBS to "-lpthreadGC2" for MinGW Sebastian Herbszt
2009-05-17 13:39 ` JonY [this message]
2009-05-17 18:06 ` Jamie Lokier
2009-05-17 18:54 ` Sebastian Herbszt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A1013A1.20003@gmail.com \
--to=10walls@gmail.com \
--cc=herbszt@gmx.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.