diff options
author | seb <seb> | 2006-12-03 08:34:45 +0000 |
---|---|---|
committer | seb <seb> | 2006-12-03 08:34:45 +0000 |
commit | 2cdcc9a663d8070f3666c690c15ddd2d091c1a9a (patch) | |
tree | 385fea96a890e8600d80fe1649f1f0d8737d54f0 | |
parent | e14d4ec0e425db305003c29bba1044b9f272ddd0 (diff) | |
download | pkgsrc-2cdcc9a663d8070f3666c690c15ddd2d091c1a9a.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 ;)
-rw-r--r-- | mk/compiler.mk | 7 |
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. # |