clang can't use pthread(s) flag

pull/1/head
toddouska 2013-09-20 10:34:29 -07:00
parent a2189d2f55
commit 8e5dab1ef3
2 changed files with 6 additions and 2 deletions

View File

@ -5,7 +5,7 @@
# Git hooks should come before autoreconf.
if test -d .git; then
if ! test -d .git; then
if ! test -d .git/hooks; then
mkdir .git/hooks
fi
ln -s -f ../../pre-commit.sh .git/hooks/pre-commit

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