summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJesús Cea <jcea@jcea.es>2019-09-28 03:09:24 (GMT)
committerGitHub <noreply@github.com>2019-09-28 03:09:24 (GMT)
commit598f676880662fb453ff98fda42b7b7068e5be32 (patch)
treefd285df6c5759b4ef3faef7c2bcfddaa2c8bad87 /configure
parent90b4e49c98dd0ff948e13dd0618240c2294eb23d (diff)
downloadcpython-598f676880662fb453ff98fda42b7b7068e5be32.zip
cpython-598f676880662fb453ff98fda42b7b7068e5be32.tar.gz
cpython-598f676880662fb453ff98fda42b7b7068e5be32.tar.bz2
[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ús Cea <jcea@jcea.es>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index 67300fe..63d6753 100755
--- a/configure
+++ b/configure
@@ -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"