Skip to content

Commit

Permalink
Check for presence of compiler -pthread flag.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
brad0 authored and blueswirl committed Aug 21, 2011
1 parent 58a0667 commit 4b29ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -1856,7 +1856,7 @@ fi

##########################################
# pthread probe
PTHREADLIBS_LIST="-lpthread -lpthreadGC2"
PTHREADLIBS_LIST="-pthread -lpthread -lpthreadGC2"

pthread=no
cat > $TMPC << EOF
Expand Down

0 comments on commit 4b29ec4

Please sign in to comment.