(fix of commit
686a667)
Issue #174 (bdwgc).
* CMakeLists.txt [CMAKE_USE_PTHREADS_INIT]: Do not define HANDLE_FORK
macro for android host.
* configure.ac [$enable_handle_fork!=yes/no/manual && THREADS=xposix]:
Likewise.
MESSAGE("Only on NetBSD 2.0 or later.")
ADD_DEFINITIONS("-D_PTHREADS")
ENDIF()
- IF( HOST MATCHES .*-.*-aix.*|.*-.*-cygwin.*|.*-.*-freebsd.*|.*-.*-haiku.*|.*-.*-hpux11.*|.*-.*-irix.*|.*-.*-kfreebsd.*-gnu|.*-.*-.*linux.*|.*-.*-netbsd.*|.*-.*-openbsd.*|.*-.*-osf.*|.*-.*-solaris.*)
+ IF( HOST MATCHES .*-.*-android.*)
+ # Android NDK does not provide pthread_atfork.
+ ELSEIF( HOST MATCHES .*-.*-aix.*|.*-.*-cygwin.*|.*-.*-freebsd.*|.*-.*-haiku.*|.*-.*-hpux11.*|.*-.*-irix.*|.*-.*-kfreebsd.*-gnu|.*-.*-.*linux.*|.*-.*-netbsd.*|.*-.*-openbsd.*|.*-.*-osf.*|.*-.*-solaris.*)
IF(enable_handle_fork)
ADD_DEFINITIONS("-DHANDLE_FORK")
ENDIF(enable_handle_fork)
# If the option is omitted, pthread_atfork handlers are installed
# by default for the targets where pthread_atfork is known to work.
case "$host" in
+ *-*-android*)
+ # Android NDK does not provide pthread_atfork.
+ ;;
*-*-darwin*)
# The incremental mode (which is off if parallel marking) conflicts
# with fork handling on Darwin.