[2.7] bpo-38301: In Solaris family, we must be sure to use '-D_REENTRANT' (GH-16446). (#16454)

(cherry picked from commit 52d1b86bde)

Co-authored-by: Jesús Cea <jcea@jcea.es>
This commit is contained in:
Jesús Cea 2019-09-28 05:09:24 +02:00 committed by GitHub
parent 90b4e49c98
commit 598f676880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,2 @@
In Solaris family, we must be sure to use ``-D_REENTRANT``.
Patch by Jesús Cea Avión.

3
configure vendored
View File

@ -9602,6 +9602,9 @@ then
posix_threads=yes
THREADOBJ="Python/thread.o"
if test "$ac_sys_system" = "SunOS"; then
CFLAGS="$CFLAGS -D_REENTRANT"
fi
elif test "$ac_cv_kpthread" = "yes"
then
CC="$CC -Kpthread"

View File

@ -2625,6 +2625,9 @@ then
AC_DEFINE(_REENTRANT)
posix_threads=yes
THREADOBJ="Python/thread.o"
if test "$ac_sys_system" = "SunOS"; then
CFLAGS="$CFLAGS -D_REENTRANT"
fi
elif test "$ac_cv_kpthread" = "yes"
then
CC="$CC -Kpthread"