зеркало из https://github.com/github/ruby.git
configure.ac: Use `pthread_create` to determine if pthread is available
Instead of `pthread_kill`. This is because emscripten supports `pthread_create` but not `pthread_kill`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
7606806cd9
Коммит
8df47f8c8d
|
@ -2256,7 +2256,7 @@ AS_IF([test "${universal_binary-no}" = yes ], [
|
||||||
|
|
||||||
AS_IF([test x"$enable_pthread" = xyes], [
|
AS_IF([test x"$enable_pthread" = xyes], [
|
||||||
for pthread_lib in thr pthread pthreads c c_r root; do
|
for pthread_lib in thr pthread pthreads c c_r root; do
|
||||||
AC_CHECK_LIB($pthread_lib, pthread_kill,
|
AC_CHECK_LIB($pthread_lib, pthread_create,
|
||||||
rb_with_pthread=yes, rb_with_pthread=no)
|
rb_with_pthread=yes, rb_with_pthread=no)
|
||||||
AS_IF([test "$rb_with_pthread" = "yes"], [ break; fi
|
AS_IF([test "$rb_with_pthread" = "yes"], [ break; fi
|
||||||
done
|
done
|
||||||
|
|
Загрузка…
Ссылка в новой задаче