pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk The C compiler is also used for Objective C, so the...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8942e296aa00
branches:  trunk
changeset: 516510:8942e296aa00
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Jul 22 05:01:17 2006 +0000

description:
The C compiler is also used for Objective C, so the c-fail-wrapper is
only created if none of these languages is mentioned in USE_LANGUAGE.

diffstat:

 mk/compiler.mk |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a925361c15d0 -r 8942e296aa00 mk/compiler.mk
--- a/mk/compiler.mk    Sat Jul 22 04:51:29 2006 +0000
+++ b/mk/compiler.mk    Sat Jul 22 05:01:17 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: compiler.mk,v 1.53 2006/07/20 16:44:01 rillig Exp $
+# $NetBSD: compiler.mk,v 1.54 2006/07/22 05:01:17 rillig Exp $
 #
 # This Makefile fragment implements handling for supported C/C++/Fortran
 # compilers.
@@ -50,7 +50,7 @@
 #      Lists the languages used in the source code of the package,
 #      and is used to determine the correct compilers to install.
 #      Valid values are: c, c++, fortran, java, objc.  The default
-#      is "c" ("c" is actually _always_ implicitly in this list).
+#      is "c".
 #
 # The following variables are defined, and available for testing in
 # package Makefiles:
@@ -167,7 +167,7 @@
        ${ECHO} 'exit 1'
        ${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
 
-.if empty(USE_LANGUAGES:Mc)
+.if empty(USE_LANGUAGES:Mc) && empty(USE_LANGUAGES:Mobjc)
 PKG_CC:=               ${_FAIL_WRAPPER.CC}
 ALL_ENV+=              CPP=${CPP:Q}
 override-tools: ${_FAIL_WRAPPER.CC}



Home | Main Index | Thread Index | Old Index