]> Git Repo - qemu.git/commitdiff
Check for presence of compiler -pthread flag.
authorBrad <[email protected]>
Mon, 8 Aug 2011 00:02:11 +0000 (20:02 -0400)
committerBlue Swirl <[email protected]>
Sun, 21 Aug 2011 18:46:34 +0000 (18:46 +0000)
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 <[email protected]>
Signed-off-by: Blue Swirl <[email protected]>
configure

index 79ddcad6a091de39ed999762d54b27dd25e4d0fc..851387556c1c5368564ff264303505b5ba46f2d9 100755 (executable)
--- a/configure
+++ b/configure
@@ -1856,7 +1856,7 @@ fi
 
 ##########################################
 # pthread probe
-PTHREADLIBS_LIST="-lpthread -lpthreadGC2"
+PTHREADLIBS_LIST="-pthread -lpthread -lpthreadGC2"
 
 pthread=no
 cat > $TMPC << EOF
This page took 0.029314 seconds and 4 git commands to generate.