summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authorgavan <gavan@pkgsrc.org>2007-01-08 19:29:45 +0000
committergavan <gavan@pkgsrc.org>2007-01-08 19:29:45 +0000
commit5d1e177d2f9601d15dbf57fe6b839ba80da9eda1 (patch)
tree6c9cd1527bf13c9be5ac0d4d87ae9d84078e3853 /mk/compiler
parent0624df5987aad1652934839797eeb91ee3047185 (diff)
downloadpkgsrc-5d1e177d2f9601d15dbf57fe6b839ba80da9eda1.tar.gz
gcc2 does not support -std=c99. If c99 is needed, require
at least gcc 3.0.
Diffstat (limited to 'mk/compiler')
-rw-r--r--mk/compiler/gcc.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk
index 29c02d974b1..0d7c8752010 100644
--- a/mk/compiler/gcc.mk
+++ b/mk/compiler/gcc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.88 2006/12/15 12:46:24 martti Exp $
+# $NetBSD: gcc.mk,v 1.89 2007/01/08 19:29:45 gavan Exp $
#
# This is the compiler definition for the GNU Compiler Collection.
#
@@ -12,6 +12,11 @@ USE_NATIVE_GCC?= no
GCC_REQD+= 2.8.0
+# gcc2 doesn't support c99
+.if !empty(USE_LANGUAGES:Mc99)
+GCC_REQD+= 3.0
+.endif
+
# _GCC_DIST_VERSION is the highest version of GCC installed by the pkgsrc
# without the PKGREVISIONs.
#