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

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

View File

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