]> git.proxmox.com Git - qemu.git/commitdiff
Check for presence of compiler -pthread flag.
authorBrad <brad@comstyle.com>
Mon, 8 Aug 2011 00:02:11 +0000 (20:02 -0400)
committerJustin M. Forbes <jforbes@redhat.com>
Mon, 3 Oct 2011 19:41:23 +0000 (14:41 -0500)
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>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure

index 605b51d1427718af6908c2cd6632eccde8d5d60d..85c7aaefdfad97a0e82086b42742a80155a247b7 100755 (executable)
--- a/configure
+++ b/configure
@@ -1849,7 +1849,7 @@ fi
 
 ##########################################
 # pthread probe
-PTHREADLIBS_LIST="-lpthread -lpthreadGC2"
+PTHREADLIBS_LIST="-pthread -lpthread -lpthreadGC2"
 
 pthread=no
 cat > $TMPC << EOF