pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk If 'c99' is in USE_LANGUAGES also add 'c'.
details: https://anonhg.NetBSD.org/pkgsrc/rev/247c20b5caba
branches: trunk
changeset: 522116:247c20b5caba
user: seb <seb%pkgsrc.org@localhost>
date: Sun Dec 03 08:34:45 2006 +0000
description:
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:
mk/compiler.mk | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 541ba72b6c00 -r 247c20b5caba mk/compiler.mk
--- a/mk/compiler.mk Sun Dec 03 05:14:37 2006 +0000
+++ b/mk/compiler.mk Sun Dec 03 08:34:45 2006 +0000
@@ -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 @@
# 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.
#
Home |
Main Index |
Thread Index |
Old Index