clang can't use pthread(s) flag

This commit is contained in:
toddouska
2013-09-20 10:34:29 -07:00
parent a2189d2f55
commit 8e5dab1ef3
2 changed files with 6 additions and 2 deletions

View File

@@ -160,7 +160,11 @@ case ${host_os} in
;;
darwin*)
ax_pthread_flags="-pthread $ax_pthread_flags"
if test "$CC" = "clang"; then
ax_pthread_flags="$ax_pthread_flags"
else
ax_pthread_flags="-pthread $ax_pthread_flags"
fi
;;
esac