summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
Diffstat (limited to 'hints')
-rw-r--r--hints/solaris_2.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh
index a322ac0e17..a06d9e802a 100644
--- a/hints/solaris_2.sh
+++ b/hints/solaris_2.sh
@@ -612,4 +612,19 @@ 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" : '.*-D_PERL_USE_SAFE_PUTENV'` -eq 0; then
+ ccflags="$ccflags -DPERL_USE_SAFE_PUTENV"
+fi
+EOOVER
+
rm -f try.c try.o try a.out