summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad <brad@comstyle.com>2011-08-07 20:02:11 -0400
committerJustin M. Forbes <jforbes@redhat.com>2011-10-03 14:41:23 -0500
commit672aefeb5e0960e9f03d1d71eb1d0688fc54b8d2 (patch)
tree53a151e5aac429cb5f2ad9de4dcfb5cfd2767f5d
parent6a10ccca803764d67142e5faf309dcb1982c28f5 (diff)
downloadqemu-672aefeb5e0960e9f03d1d71eb1d0688fc54b8d2.tar.gz
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 605b51d142..85c7aaefdf 100755
--- 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