X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fsvr5.sh;h=44c03c9fc908d512e8bef27ac6284365e34b5dad;hb=3ccca2394923c5443046ae9323377eaeee3abd6c;hp=476f2cfa73dad38a481cbe99e4d207196aaab880;hpb=3b43288c93885fda04f2df820b4c56633364fd71;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/svr5.sh b/hints/svr5.sh index 476f2cf..44c03c9 100644 --- a/hints/svr5.sh +++ b/hints/svr5.sh @@ -1,24 +1,19 @@ # svr5 hints, System V Release 5.x # Last modified 1999/09/21 by Boyd Gerber, gerberb@zenez.com -# with changes from Mike Hopkirk hops@sco.com # Use Configure -Dcc=gcc to use gcc. case "$cc" in '') cc='/bin/cc' test -f $cc || cc='/usr/ccs/bin/cc' ;; -*gcc*) - # "$gccversion" not set yet - vers=`gcc -v 2>&1 | sed -n -e 's@.*version \([^ ][^ ]*\) .*@\1@p'` - case $vers in - *2.95*) + *) + case "$gccversion" in + *2.95*) ccflags='-fno-strict-aliasing' - # If it coredumps when running miniperl with the above switch on - # try instead without optimisation. - # optimize=' ' - ;; + ;; + *);; esac - ;; + ;; esac # want_ucb=''