summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJesús Cea <jcea@jcea.es>2019-09-28 01:44:32 (GMT)
committerGitHub <noreply@github.com>2019-09-28 01:44:32 (GMT)
commit52d1b86bde2b772a76919c76991c326384954bf1 (patch)
treed50eee49a885b7b38e58b38ff3fd4cbf4db7a29d /configure
parente8650a4f8c7fb76f570d4ca9c1fbe44e91c8dfaa (diff)
downloadcpython-52d1b86bde2b772a76919c76991c326384954bf1.zip
cpython-52d1b86bde2b772a76919c76991c326384954bf1.tar.gz
cpython-52d1b86bde2b772a76919c76991c326384954bf1.tar.bz2
bpo-38301: In Solaris family, we must be sure to use '-D_REENTRANT' (#16446)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index bb8fbc2..f1979c1 100755
--- a/configure
+++ b/configure
@@ -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"