From 8f5f383e3c80d6b42f2621b380a842dc9f0b2c72 Mon Sep 17 00:00:00 2001 From: rakshasa Date: Mon, 7 May 2012 02:19:12 +0900 Subject: [PATCH] For POSIX threads config script try none first to avoid adding flags when not needed. --- scripts/ax_pthread.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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