summaryrefslogtreecommitdiff
path: root/hints/svr5.sh
diff options
context:
space:
mode:
authorBoyd Gerber <gerberb@zenez.com>1999-09-21 17:13:15 -0600
committerJarkko Hietaniemi <jhi@iki.fi>1999-09-22 06:52:28 +0000
commit3b43288c93885fda04f2df820b4c56633364fd71 (patch)
tree7ad73b7be40859f4c6ad9383f43c4e4a0197909c /hints/svr5.sh
parent7821416a3abc763792fc4a61b44bd0259cc39604 (diff)
downloadperl-3b43288c93885fda04f2df820b4c56633364fd71.tar.gz
(Retracted by #4127, unnecessary because Configure does this.)
To: Jarkko Hietaniemi <jhi@iki.fi> cc: perl5-porters@perl.org Subject: Re: [ID 19990921.004] Changes for SCO OpenServer and UnixWare 7 Message-ID: <Pine.SC5.4.10.9909212310320.11455-200000@xenau> p4raw-id: //depot/cfgperl@4216
Diffstat (limited to 'hints/svr5.sh')
-rw-r--r--hints/svr5.sh17
1 files changed, 11 insertions, 6 deletions
diff --git a/hints/svr5.sh b/hints/svr5.sh
index 44c03c9fc9..476f2cfa73 100644
--- a/hints/svr5.sh
+++ b/hints/svr5.sh
@@ -1,19 +1,24 @@
# 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'
;;
- *)
- case "$gccversion" in
- *2.95*)
+*gcc*)
+ # "$gccversion" not set yet
+ vers=`gcc -v 2>&1 | sed -n -e 's@.*version \([^ ][^ ]*\) .*@\1@p'`
+ case $vers 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=''