aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad <brad@comstyle.com>2011-08-07 20:02:11 -0400
committerBlue Swirl <blauwirbel@gmail.com>2011-08-21 18:46:34 +0000
commit4b29ec41c82a6e6c6a50263818e81944ef522fb2 (patch)
tree2cd38792108b46b573c4c40704a8d5f667877d46
parent58a06675d39955e80154c36cff5113bb30e078a7 (diff)
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> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 79ddcad6a0..851387556c 100755
--- 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