ICU-5254 Fix multithreaded safety for MinGW
X-SVN-Rev: 20068
This commit is contained in:
parent
77706b9043
commit
04037f88a9
@ -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.
|
||||
|
1
icu4c/source/configure
vendored
1
icu4c/source/configure
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user