For POSIX threads config script try none first to avoid adding flags when not needed.

This commit is contained in:
rakshasa
2012-05-07 02:19:12 +09:00
parent 2ca49e3485
commit 8f5f383e3c
+2 -2
View File
@@ -123,7 +123,7 @@ fi
# which indicates that we try without any flags at all, and "pthread-config"
# which is a program returning the flags for the Pth emulation library.
ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
ax_pthread_flags="none pthreads -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
# The ordering *is* (sometimes) important. Some notes on the
# individual items follow:
@@ -160,7 +160,7 @@ case "${host_cpu}-${host_os}" in
;;
*-darwin*)
ax_pthread_flags="-pthread $ax_pthread_flags"
ax_pthread_flags="none -pthread $ax_pthread_flags"
;;
esac