Commit 598f6768 authored by Jesús Cea's avatar Jesús Cea Committed by GitHub

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

(cherry picked from commit 52d1b86bde2b772a76919c76991c326384954bf1)
Co-authored-by: default avatarJesús Cea <jcea@jcea.es>
parent 90b4e49c
In Solaris family, we must be sure to use ``-D_REENTRANT``.
Patch by Jesús Cea Avión.
...@@ -9602,6 +9602,9 @@ then ...@@ -9602,6 +9602,9 @@ then
posix_threads=yes posix_threads=yes
THREADOBJ="Python/thread.o" THREADOBJ="Python/thread.o"
if test "$ac_sys_system" = "SunOS"; then
CFLAGS="$CFLAGS -D_REENTRANT"
fi
elif test "$ac_cv_kpthread" = "yes" elif test "$ac_cv_kpthread" = "yes"
then then
CC="$CC -Kpthread" CC="$CC -Kpthread"
......
...@@ -2625,6 +2625,9 @@ then ...@@ -2625,6 +2625,9 @@ then
AC_DEFINE(_REENTRANT) AC_DEFINE(_REENTRANT)
posix_threads=yes posix_threads=yes
THREADOBJ="Python/thread.o" THREADOBJ="Python/thread.o"
if test "$ac_sys_system" = "SunOS"; then
CFLAGS="$CFLAGS -D_REENTRANT"
fi
elif test "$ac_cv_kpthread" = "yes" elif test "$ac_cv_kpthread" = "yes"
then then
CC="$CC -Kpthread" CC="$CC -Kpthread"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment