summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorChip Salzenberg <chip@atlantic.net>1997-02-18 13:22:00 +1200
committerChip Salzenberg <chip@atlantic.net>1997-02-18 13:22:00 +1200
commitdfa3a3d32f999ad1e84b6c1f00ad651a83b7102c (patch)
treeb663abddfac2dbb00e1a4b008b30386208bc2f08 /hints
parent35f4835537ae774426df7791662087b4be88978a (diff)
downloadperl-dfa3a3d32f999ad1e84b6c1f00ad651a83b7102c.tar.gz
Digital UNIX hints
(this is the same change as commit bcbb37e68c8af7f356dd1bf2b25fd24f46baffe3, but as applied)
Diffstat (limited to 'hints')
-rw-r--r--hints/dec_osf.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh
index f0b380bf8c..03731355ff 100644
--- a/hints/dec_osf.sh
+++ b/hints/dec_osf.sh
@@ -35,6 +35,7 @@
# Your mileage will vary.
#
+_DEC_cc_style=
case "$optimize" in
'') case "$cc" in
*gcc*)
@@ -47,10 +48,12 @@ case "$optimize" in
*/gemc_cc*)
# we have the new DEC GEM CC
optimize='-O4'
+ _DEC_cc_style=new
;;
*)
# we have the old MIPS CC
optimize='-O2 -Olimit 3200'
+ _DEC_cc_style=old
;;
esac
# cleanup
@@ -62,6 +65,17 @@ esac
# all compilers are ANSI
ccflags="$ccflags -DSTANDARD_C"
+# be nauseatingly ANSI
+case "$cc" in
+gcc) ccflags="$ccflags -ansi"
+ ;;
+*) ccflags="$ccflags -std1"
+ # -vaxc not to get warnings about stuff like$this for VMS.
+ # -vaxc is available only in newer DEC compilers.
+ test X"$_DEC_cc_style"Y = XnewY && ccflags="$ccflags -vaxc"
+ ;;
+esac
+
# dlopen() is in libc
libswanted="`echo $libswanted | sed -e 's/ dl / /'`"
@@ -93,6 +107,13 @@ esac
#
# History:
#
+# perl5.003_26:
+#
+# 15-Feb-1997 Jarkko Hietaniemi <jhi@iki.fi>
+#
+# * -std1 and -ansi.
+#
+#
# perl5.003_24:
#
# 30-Jan-1997 Jarkko Hietaniemi <jhi@iki.fi>