ICU-5254 Fix multithreaded safety for MinGW

X-SVN-Rev: 20068
This commit is contained in:
George Rhoten 2006-08-15 08:24:13 +00:00
parent 77706b9043
commit 04037f88a9
3 changed files with 5 additions and 1 deletions

View File

@ -29,7 +29,8 @@ SHAREDLIBCXXFLAGS =
SHAREDLIBCPPFLAGS = -DPIC
## Additional flags when building libraries and with threads
THREADSCPPFLAGS = -D_REENTRANT
THREADSCFLAGS = -mthreads
THREADSCXXFLAGS = -mthreads
LIBCPPFLAGS =
# Commands to link. Link with C++ in case static libraries are used.

View File

@ -4301,6 +4301,7 @@ echo "${ECHO_T}$ac_cv_func_pthread_mutex_lock" >&6
fi
case "${host}" in
*-pc-cygwin*|*-pc-mingw*)
ICU_USE_THREADS=1
if test "$ac_cv_c_compiler_gnu" = no; then
ICU_USE_THREADS=1
if test $ENABLE_DEBUG = 1; then

View File

@ -293,6 +293,8 @@ if test $threads = true; then
dnl Check to see if we are using CygWin with MSVC
case "${host}" in
*-pc-cygwin*|*-pc-mingw*)
dnl For gcc, the thread options are set by mh-mingw/mh-cygwin
ICU_USE_THREADS=1
if test "$ac_cv_prog_gcc" = no; then
dnl We're using normal windows compilers. Threading is available.
ICU_USE_THREADS=1