[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: simple multithread program fails on Cygwin, succeeds on Linux
From: |
Bruno Haible |
Subject: |
Re: simple multithread program fails on Cygwin, succeeds on Linux |
Date: |
Fri, 14 Aug 2009 18:29:00 +0200 |
User-agent: |
KMail/1.9.9 |
> 2009-08-12 Bruno Haible <address@hidden>
>
> Disable multithread support by default on Cygwin 1.5.x.
> * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
> set gl_use_threads=no if not specified otherwise.
This patch did not have the intended effect. I'm applying this follow-up:
2009-08-14 Bruno Haible <address@hidden>
Disable multithread support by default on Cygwin 1.5.x for real.
* m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
*** m4/threadlib.m4.orig 2009-08-14 12:00:46.000000000 +0200
--- m4/threadlib.m4 2009-08-14 11:57:14.000000000 +0200
***************
*** 52,57 ****
--- 52,58 ----
[if test -n "$gl_use_threads_default"; then
gl_use_threads="$gl_use_threads_default"
else
+ changequote(,)dnl
case "$host_os" in
dnl Disable multithreading by default on OSF/1, because it interferes
dnl with fork()/exec(): When msgexec is linked with -lpthread, its
***************
*** 68,73 ****
--- 69,75 ----
;;
*) gl_use_threads=yes ;;
esac
+ changequote([,])dnl
fi
])
if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then