summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorseb <seb>2006-12-03 08:34:45 +0000
committerseb <seb>2006-12-03 08:34:45 +0000
commitaf281868c2b5ab4e93679ad2a293274fbcda5ee0 (patch)
tree385fea96a890e8600d80fe1649f1f0d8737d54f0 /mk
parentfbabed4ea4f1252834c508fffa694860817a2e02 (diff)
downloadpkgsrc-af281868c2b5ab4e93679ad2a293274fbcda5ee0.tar.gz
If 'c99' is in USE_LANGUAGES also add 'c'.
I bet 'c99' support in USE_LANGUAGES was only tested on -current. On -current there is no g77 command so mk/compiler/gcc.mk includes mk/compiler/f2c.mk which adds 'c' to USE_LANGUAGES ;)
Diffstat (limited to 'mk')
-rw-r--r--mk/compiler.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/compiler.mk b/mk/compiler.mk
index 9e08c8d6c7b..ca28d42c43d 100644
--- a/mk/compiler.mk
+++ b/mk/compiler.mk
@@ -1,4 +1,4 @@
-# $NetBSD: compiler.mk,v 1.57 2006/12/02 22:32:59 jschauma Exp $
+# $NetBSD: compiler.mk,v 1.58 2006/12/03 08:34:45 seb Exp $
#
# This Makefile fragment implements handling for supported C/C++/Fortran
# compilers.
@@ -73,6 +73,11 @@ BSD_COMPILER_MK= defined
# Since most packages need a C compiler, this is the default value.
USE_LANGUAGES?= c
+# Add c support if c99 is set
+.if !empty(USE_LANGUAGES:Mc99)
+USE_LANGUAGES+= c
+.endif
+
# For environments where there is an external gcc too, but pkgsrc
# should use the pkgsrc one for consistency.
#