Skip to content

Commit

Permalink
[2.7] bpo-38301: In Solaris family, we must be sure to use '-D_REENTR…
Browse files Browse the repository at this point in the history
…ANT' (pythonGH-16446). (python#16454)

(cherry picked from commit 52d1b86)

Co-authored-by: Jesús Cea <[email protected]>
  • Loading branch information
jcea authored Sep 28, 2019
1 parent 90b4e49 commit 598f676
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
In Solaris family, we must be sure to use ``-D_REENTRANT``.
Patch by Jesús Cea Avión.
3 changes: 3 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 598f676

Please sign in to comment.