diff --git a/scripts/ax_pthread.m4 b/scripts/ax_pthread.m4 index e20a388c..27f2533c 100644 --- a/scripts/ax_pthread.m4 +++ b/scripts/ax_pthread.m4 @@ -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