diff options
Diffstat (limited to 'hints')
-rw-r--r-- | hints/dec_osf.sh | 21 |
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> |