[Python-checkins] (no subject)
Jesús Cea
webhook-mailer at python.org
Fri Sep 27 23:09:28 EDT 2019
To: python-checkins at python.org
Subject: [2.7] bpo-38301: In Solaris family, we must be sure to use
'-D_REENTRANT' (GH-16446). (#16454)
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
https://github.com/python/cpython/commit/598f676880662fb453ff98fda42b7b7068e5=
be32
commit: 598f676880662fb453ff98fda42b7b7068e5be32
branch: 2.7
author: Jes=C3=BAs Cea <jcea at jcea.es>
committer: GitHub <noreply at github.com>
date: 2019-09-28T05:09:24+02:00
summary:
[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: Jes=C3=BAs Cea <jcea at jcea.es>
files:
A Misc/NEWS.d/next/Build/2019-09-28-02-37-11.bpo-38301.123456.rst
M configure
M configure.ac
diff --git a/Misc/NEWS.d/next/Build/2019-09-28-02-37-11.bpo-38301.123456.rst =
b/Misc/NEWS.d/next/Build/2019-09-28-02-37-11.bpo-38301.123456.rst
new file mode 100644
index 000000000000..59c9a76385e2
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2019-09-28-02-37-11.bpo-38301.123456.rst
@@ -0,0 +1,2 @@
+In Solaris family, we must be sure to use ``-D_REENTRANT``.
+Patch by Jes=C3=BAs Cea Avi=C3=B3n.
diff --git a/configure b/configure
index 67300fe2b6e1..63d675312da9 100755
--- a/configure
+++ b/configure
@@ -9602,6 +9602,9 @@ then
=20
posix_threads=3Dyes
THREADOBJ=3D"Python/thread.o"
+ if test "$ac_sys_system" =3D "SunOS"; then
+ CFLAGS=3D"$CFLAGS -D_REENTRANT"
+ fi
elif test "$ac_cv_kpthread" =3D "yes"
then
CC=3D"$CC -Kpthread"
diff --git a/configure.ac b/configure.ac
index 36df3d02a2d8..efe6922b5de2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2625,6 +2625,9 @@ then
AC_DEFINE(_REENTRANT)
posix_threads=3Dyes
THREADOBJ=3D"Python/thread.o" =20
+ if test "$ac_sys_system" =3D "SunOS"; then
+ CFLAGS=3D"$CFLAGS -D_REENTRANT"
+ fi
elif test "$ac_cv_kpthread" =3D "yes"
then
CC=3D"$CC -Kpthread"
More information about the Python-checkins
mailing list