summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorAlan Burlison <Alan.Burlison@uk.sun.com>2005-10-11 17:29:54 +0100
committerH.Merijn Brand <h.m.brand@xs4all.nl>2005-10-11 15:15:37 +0000
commit88f5bc07adcbdcc8427eef58d88a43884ef3f99a (patch)
tree9ff4104992b1e0501742f6532393057cfd7be2de /hints
parentd32793394506cce30e5ae4fb6827bb6a2d170dd1 (diff)
downloadperl-88f5bc07adcbdcc8427eef58d88a43884ef3f99a.tar.gz
environ fixup
Message-ID: <434BDA72.4090109@sun.com> p4raw-id: //depot/perl@25737
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