From a1daed2dea5cd8d5cc9c122cdb6d080c87ad3776 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 5 Jul 2006 17:32:41 +0000 Subject: configure.ac: Depend addition of -pthread on host OS. 2006-07-05 Eric Christopher * configure.ac: Depend addition of -pthread on host OS. * configure: Regenerate. From-SVN: r115205 --- libgomp/configure | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'libgomp/configure') diff --git a/libgomp/configure b/libgomp/configure index 058b81b..28e3c99 100755 --- a/libgomp/configure +++ b/libgomp/configure @@ -8296,7 +8296,8 @@ fi # Check to see if -pthread or -lpthread is needed. Prefer the former. # In case the pthread.h system header is not found, this test will fail. XPCFLAGS="" -CFLAGS="$CFLAGS -pthread" + +# Darwin doesn't need the -pthread option since threads are in libSystem cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -8335,7 +8336,13 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - XPCFLAGS=" -Wc,-pthread" + case $host in + *-darwin*) + ;; + default) + XPCFLAGS=" -Wc,-pthread" + ;; + esac else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -- cgit v1.1