summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-04-10 13:13:28 +0000
committergrant <grant@pkgsrc.org>2003-04-10 13:13:28 +0000
commitc25786c26bf119912cd33bc94bbbc52494be4046 (patch)
tree30d60f3d32a03e292bde4058cb1dd631a329bd68 /lang
parent7edf08338acac0d784dee7bb9b42dd9e58b0e7e7 (diff)
downloadpkgsrc-c25786c26bf119912cd33bc94bbbc52494be4046.tar.gz
use `gcc -dumpversion' instead of `gcc --version', so this works
with both gcc2 and gcc3. as suggested by Berndt Wulf on tech-pkg.
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc/buildlink2.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/gcc/buildlink2.mk b/lang/gcc/buildlink2.mk
index 2fe73142c85..a811d7ef5ef 100644
--- a/lang/gcc/buildlink2.mk
+++ b/lang/gcc/buildlink2.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink2.mk,v 1.6 2002/10/08 09:09:12 jlam Exp $
+# $NetBSD: buildlink2.mk,v 1.7 2003/04/10 13:13:28 grant Exp $
.if !defined(GCC_BUILDLINK2_MK)
GCC_BUILDLINK2_MK= # defined
@@ -34,7 +34,7 @@ _GCC_ARCHDIR= ${_GCC_PREFIX}${_GCC_ARCHSUBDIR}
BUILDLINK_LDFLAGS.gcc= -L${_GCC_ARCHDIR} -Wl,-R${_GCC_ARCHDIR}
-_GCC_VERSION!= ( gcc --version ) 2>/dev/null || ${ECHO} 0
+_GCC_VERSION!= ( gcc -dumpversion ) 2>/dev/null || ${ECHO} 0
#
# GCC_VERSION is the version number of the gcc detected above. EGCS gcc is
# considered to be "gcc-2.8.1" so that it will match "gcc>=2.8.0".