From: Brad Date: Mon, 8 Aug 2011 00:02:11 +0000 (-0400) Subject: Check for presence of compiler -pthread flag. X-Git-Tag: v0.15.1~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=672aefeb5e0960e9f03d1d71eb1d0688fc54b8d2;p=thirdparty%2Fqemu.git 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 Signed-off-by: Blue Swirl --- diff --git a/configure b/configure index 605b51d1427..85c7aaefdfa 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