diff options
author | Eric Christopher <echristo@gcc.gnu.org> | 2006-07-05 17:32:41 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gcc.gnu.org> | 2006-07-05 17:32:41 +0000 |
commit | a1daed2dea5cd8d5cc9c122cdb6d080c87ad3776 (patch) | |
tree | 3c8d77b4fd64c8cc02c2aeba5c9441d922dfe107 /libgomp/configure | |
parent | dc8f5205374552519f0e4a89c115f3a17c23931b (diff) | |
download | gcc-a1daed2dea5cd8d5cc9c122cdb6d080c87ad3776.zip gcc-a1daed2dea5cd8d5cc9c122cdb6d080c87ad3776.tar.gz gcc-a1daed2dea5cd8d5cc9c122cdb6d080c87ad3776.tar.bz2 |
configure.ac: Depend addition of -pthread on host OS.
2006-07-05 Eric Christopher <echristo@apple.com>
* configure.ac: Depend addition of -pthread on host OS.
* configure: Regenerate.
From-SVN: r115205
Diffstat (limited to 'libgomp/configure')
-rwxr-xr-x | libgomp/configure | 11 |
1 files changed, 9 insertions, 2 deletions
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 |