summaryrefslogtreecommitdiff
path: root/hints/dec_osf.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hints/dec_osf.sh')
-rw-r--r--hints/dec_osf.sh2
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