diff options
author | H.Merijn Brand <h.m.brand@xs4all.nl> | 2007-01-12 15:15:13 +0000 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2007-01-12 15:15:13 +0000 |
commit | 0baa094867867dae4d06080810389e0a395c66b9 (patch) | |
tree | a21b5dff09ce2f446eac3635502095445d565aac /hints/dec_osf.sh | |
parent | c560d966b003defa80c2baa9fedc0a294d2b3afe (diff) | |
download | perl-0baa094867867dae4d06080810389e0a395c66b9.tar.gz |
gcc -dumpversion is at least supported back to 2.7.x and
thus seems to be much more defensive against upcoming version
reporting format changes.
p4raw-id: //depot/perl@29777
Diffstat (limited to 'hints/dec_osf.sh')
-rw-r--r-- | hints/dec_osf.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh index 336e0ef99e..cf557eabac 100644 --- a/hints/dec_osf.sh +++ b/hints/dec_osf.sh @@ -71,7 +71,7 @@ esac case "$isgcc" in gcc) if [ "X$gccversion" = "X" ]; then # Done too late in Configure if hinted - gccversion=`$cc --version | sed 's/.*(GCC) *//'` + gccversion=`$cc -dumpversion` fi set $gccversion if test "$1" -lt 2 -o \( "$1" -eq 2 -a \( "$2" -lt 95 -o \( "$2" -eq 95 -a "$3" -lt 3 \) \) \); then |