summaryrefslogtreecommitdiff
path: root/hints/vos.sh
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2007-01-12 15:15:13 +0000
committerH.Merijn Brand <h.m.brand@xs4all.nl>2007-01-12 15:15:13 +0000
commit0baa094867867dae4d06080810389e0a395c66b9 (patch)
treea21b5dff09ce2f446eac3635502095445d565aac /hints/vos.sh
parentc560d966b003defa80c2baa9fedc0a294d2b3afe (diff)
downloadperl-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/vos.sh')
-rw-r--r--hints/vos.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/hints/vos.sh b/hints/vos.sh
index a5bf3372a4..d32f7e6f5a 100644
--- a/hints/vos.sh
+++ b/hints/vos.sh
@@ -110,7 +110,7 @@ if $cc -o t001 -O $ccflags $ldflags ../hints/t001.c; then
gccbug=`$run ./t001`
if [ "X$gccversion" = "X" ]; then
# Done too late in Configure if hinted
- gccversion=`$cc --version | sed 's/.*(GCC) *//'`
+ gccversion=`$cc -dumpversion`
fi
case "$gccbug" in
*fails*) cat >&4 <<EOF