diff options
author | Jesús Cea <jcea@jcea.es> | 2019-09-28 01:44:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-28 01:44:32 (GMT) |
commit | 52d1b86bde2b772a76919c76991c326384954bf1 (patch) | |
tree | d50eee49a885b7b38e58b38ff3fd4cbf4db7a29d | |
parent | e8650a4f8c7fb76f570d4ca9c1fbe44e91c8dfaa (diff) | |
download | cpython-52d1b86bde2b772a76919c76991c326384954bf1.zip cpython-52d1b86bde2b772a76919c76991c326384954bf1.tar.gz cpython-52d1b86bde2b772a76919c76991c326384954bf1.tar.bz2 |
bpo-38301: In Solaris family, we must be sure to use '-D_REENTRANT' (#16446)
-rw-r--r-- | Misc/NEWS.d/next/Build/2019-09-28-02-37-11.bpo-38301.123456.rst | 2 | ||||
-rwxr-xr-x | configure | 3 | ||||
-rw-r--r-- | configure.ac | 3 |
3 files changed, 8 insertions, 0 deletions
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 0000000..59c9a76 --- /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ús Cea Avión. @@ -10500,6 +10500,9 @@ then $as_echo "#define _REENTRANT 1" >>confdefs.h posix_threads=yes + if test "$ac_sys_system" = "SunOS"; then + CFLAGS="$CFLAGS -D_REENTRANT" + fi elif test "$ac_cv_kpthread" = "yes" then CC="$CC -Kpthread" diff --git a/configure.ac b/configure.ac index 69e2a5e..917a908 100644 --- a/configure.ac +++ b/configure.ac @@ -3063,6 +3063,9 @@ then # Defining _REENTRANT on system with POSIX threads should not hurt. AC_DEFINE(_REENTRANT) posix_threads=yes + if test "$ac_sys_system" = "SunOS"; then + CFLAGS="$CFLAGS -D_REENTRANT" + fi elif test "$ac_cv_kpthread" = "yes" then CC="$CC -Kpthread" |