diff options
author | seb <seb@pkgsrc.org> | 2006-12-03 08:34:45 +0000 |
---|---|---|
committer | seb <seb@pkgsrc.org> | 2006-12-03 08:34:45 +0000 |
commit | 2f32439d158972687592b247a888ac9543314c8a (patch) | |
tree | 385fea96a890e8600d80fe1649f1f0d8737d54f0 /mk | |
parent | 0e361bf57b6163e96cee4ff72c4e21c3d80f7544 (diff) | |
download | pkgsrc-2f32439d158972687592b247a888ac9543314c8a.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.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. # |