Skip to contentSkip to conversation

Check for presence of compiler -pthread flag

PATCH Applied Brad 3 participants 4 messages Aug 8, 2011 – Aug 22, 2011

lore
Share & tools
lore

Brad

author
#0 lore raw

PATCH 1/1 Check for presence of compiler -pthread flag

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.

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


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
author
#1 lore raw
Quoted 8 lines · Brad

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.

ping.

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Applied
#2 lore raw
In reply to Brad

Thanks, applied.

Quoted 37 lines · Brad

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.

---
 configure |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
configure +1 -1
index 0c67a4a..bd850f3 100755
@@ -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.

#3 lore raw
In reply to Brad
Quoted 8 lines · Brad

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.

Applied. Thanks.

Regards,

Anthony Liguori

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