summaryrefslogtreecommitdiff
path: root/hints/solaris_2.sh
diff options
context:
space:
mode:
authorTomasz Konojacki <me@xenu.pl>2022-04-19 16:41:23 +0200
committerxenu <me@xenu.pl>2022-05-29 00:54:10 +0200
commitae6b6b71cdbfb3fb6e1192178fa1e530a2f07ece (patch)
tree19d644c0277a598f8f5b2062ef20b43d78591c61 /hints/solaris_2.sh
parentb95d23342a119c6677aa5ad786ca7d002c98bef2 (diff)
downloadperl-ae6b6b71cdbfb3fb6e1192178fa1e530a2f07ece.tar.gz
make PERL_USE_SAFE_PUTENV the default and the only option
Now environ isn't owned by Perl and calling setenv/putenv in XS code will no longer result in memory corruption. Fixes #19399
Diffstat (limited to 'hints/solaris_2.sh')
-rw-r--r--hints/solaris_2.sh15
1 files changed, 0 insertions, 15 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh
index e50d9d8323..21bfc8756e 100644
--- a/hints/solaris_2.sh
+++ b/hints/solaris_2.sh
@@ -694,21 +694,6 @@ EOM
esac
EOCBU
-#
-# If unsetenv is available, use it in conjunction with PERL_USE_SAFE_PUTENV to
-# work around Sun bugid 6333830. Both unsetenv and 6333830 only appear in
-# Solaris 10, so we don't need to probe explicitly for an OS version. We have
-# to append this test to the end of config.over as it needs to run after
-# Configure has probed for unsetenv, and this hints file is processed before
-# that has happened.
-#
-cat >> config.over <<'EOOVER'
-if test "$d_unsetenv" = "$define" -a \
- `expr "$ccflags" : '.*-DPERL_USE_SAFE_PUTENV'` -eq 0; then
- ccflags="$ccflags -DPERL_USE_SAFE_PUTENV"
-fi
-EOOVER
-
rm -f try.c try.o try a.out
# If using C++, the Configure scan for dlopen() will fail in Solaris