From: Chip Salzenberg Date: Tue, 18 Feb 1997 01:22:00 +0000 (+1200) Subject: Digital UNIX hints X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dfa3a3d32f999ad1e84b6c1f00ad651a83b7102c;p=p5sagit%2Fp5-mst-13.2.git Digital UNIX hints (this is the same change as commit bcbb37e68c8af7f356dd1bf2b25fd24f46baffe3, but as applied) --- diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh index f0b380b..0373135 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 +# +# * -std1 and -ansi. +# +# # perl5.003_24: # # 30-Jan-1997 Jarkko Hietaniemi