[Python-checkins] (no subject)

Jesús Cea webhook-mailer at python.org
Fri Sep 27 22:21:28 EDT 2019


To: python-checkins at python.org
Subject: bpo-38301: In Solaris family, we must be sure to use '-D_REENTRANT'
 (GH-16446) (#16450)
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
https://github.com/python/cpython/commit/6112b91bb827b07ab83e3e720aa055772a2c=
8b9d
commit: 6112b91bb827b07ab83e3e720aa055772a2c8b9d
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.co=
m>
committer: Jes=C3=BAs Cea <jcea at jcea.es>
date: 2019年09月28日T04:21:24+02:00
summary:
bpo-38301: In Solaris family, we must be sure to use '-D_REENTRANT' (GH-16446=
) (#16450)
(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 cfdbb6cfeda6..0f466db4aa0a 100755
--- a/configure
+++ b/configure
@@ -10489,6 +10489,9 @@ then
 $as_echo "#define _REENTRANT 1" >>confdefs.h
=20
 posix_threads=3Dyes
+ 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 93f3b0d5a6be..1ef0df70e686 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3079,6 +3079,9 @@ then
 # Defining _REENTRANT on system with POSIX threads should not hurt.
 AC_DEFINE(_REENTRANT)
 posix_threads=3Dyes
+ 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

AltStyle によって変換されたページ (->オリジナル) /