qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Check for presence of compiler -pthread flag
@ 2011-08-08  0:02 Brad
  2011-08-11 23:28 ` Brad
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Brad @ 2011-08-08  0:02 UTC (permalink / raw)
  To: qemu-devel

Check for presence of compiler -pthread flag.

OpenBSD / FreeBSD and some other OS's require the use of
cc -pthread to link threaded programs so have QEMU's
configure script check for the presence of the flag
and use it if so.

Signed-off-by: Brad Smith <brad@comstyle.com>

---
 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index 0c67a4a..bd850f3 100755
--- a/configure
+++ b/configure
@@ -1858,7 +1858,7 @@ fi
 
 ##########################################
 # pthread probe
-PTHREADLIBS_LIST="-lpthread -lpthreadGC2"
+PTHREADLIBS_LIST="-pthread -lpthread -lpthreadGC2"
 
 pthread=no
 cat > $TMPC << EOF
-- 
1.7.6


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] Check for presence of compiler -pthread flag
  2011-08-08  0:02 [Qemu-devel] [PATCH] Check for presence of compiler -pthread flag Brad
@ 2011-08-11 23:28 ` Brad
  2011-08-21 18:48 ` Blue Swirl
  2011-08-22 14:42 ` Anthony Liguori
  2 siblings, 0 replies; 4+ messages in thread
From: Brad @ 2011-08-11 23:28 UTC (permalink / raw)
  To: qemu-devel

On Sun, Aug 07, 2011 at 08:02:11PM -0400, Brad wrote:
> Check for presence of compiler -pthread flag.
> 
> OpenBSD / FreeBSD and some other OS's require the use of
> cc -pthread to link threaded programs so have QEMU's
> configure script check for the presence of the flag
> and use it if so.
> 
> Signed-off-by: Brad Smith <brad@comstyle.com>

ping.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] Check for presence of compiler -pthread flag
  2011-08-08  0:02 [Qemu-devel] [PATCH] Check for presence of compiler -pthread flag Brad
  2011-08-11 23:28 ` Brad
@ 2011-08-21 18:48 ` Blue Swirl
  2011-08-22 14:42 ` Anthony Liguori
  2 siblings, 0 replies; 4+ messages in thread
From: Blue Swirl @ 2011-08-21 18:48 UTC (permalink / raw)
  To: Brad; +Cc: qemu-devel

Thanks, applied.

On Mon, Aug 8, 2011 at 12:02 AM, Brad <brad@comstyle.com> wrote:
> Check for presence of compiler -pthread flag.
>
> OpenBSD / FreeBSD and some other OS's require the use of
> cc -pthread to link threaded programs so have QEMU's
> configure script check for the presence of the flag
> and use it if so.
>
> Signed-off-by: Brad Smith <brad@comstyle.com>
>
> ---
>  configure |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/configure b/configure
> index 0c67a4a..bd850f3 100755
> --- a/configure
> +++ b/configure
> @@ -1858,7 +1858,7 @@ fi
>
>  ##########################################
>  # pthread probe
> -PTHREADLIBS_LIST="-lpthread -lpthreadGC2"
> +PTHREADLIBS_LIST="-pthread -lpthread -lpthreadGC2"
>
>  pthread=no
>  cat > $TMPC << EOF
> --
> 1.7.6
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] [PATCH] Check for presence of compiler -pthread flag
  2011-08-08  0:02 [Qemu-devel] [PATCH] Check for presence of compiler -pthread flag Brad
  2011-08-11 23:28 ` Brad
  2011-08-21 18:48 ` Blue Swirl
@ 2011-08-22 14:42 ` Anthony Liguori
  2 siblings, 0 replies; 4+ messages in thread
From: Anthony Liguori @ 2011-08-22 14:42 UTC (permalink / raw)
  To: Brad; +Cc: qemu-devel

On 08/07/2011 07:02 PM, Brad wrote:
> Check for presence of compiler -pthread flag.
>
> OpenBSD / FreeBSD and some other OS's require the use of
> cc -pthread to link threaded programs so have QEMU's
> configure script check for the presence of the flag
> and use it if so.
>
> Signed-off-by: Brad Smith<brad@comstyle.com>

Applied.  Thanks.

Regards,

Anthony Liguori

>
> ---
>   configure |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/configure b/configure
> index 0c67a4a..bd850f3 100755
> --- a/configure
> +++ b/configure
> @@ -1858,7 +1858,7 @@ fi
>
>   ##########################################
>   # pthread probe
> -PTHREADLIBS_LIST="-lpthread -lpthreadGC2"
> +PTHREADLIBS_LIST="-pthread -lpthread -lpthreadGC2"
>
>   pthread=no
>   cat>  $TMPC<<  EOF

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-22 14:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-08  0:02 [Qemu-devel] [PATCH] Check for presence of compiler -pthread flag Brad
2011-08-11 23:28 ` Brad
2011-08-21 18:48 ` Blue Swirl
2011-08-22 14:42 ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).