summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-07-22 05:01:17 +0000
committerrillig <rillig@pkgsrc.org>2006-07-22 05:01:17 +0000
commit15c11119af629925a166c3c84e83fe4ded7c5907 (patch)
tree04345177aad959bdf7479da8e76f9d5d8f517572
parentaf2c8b2d03e3d1ecb56fdd6babb98d430267dab7 (diff)
downloadpkgsrc-15c11119af629925a166c3c84e83fe4ded7c5907.tar.gz
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.
-rw-r--r--mk/compiler.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/compiler.mk b/mk/compiler.mk
index 59247c2223c..eaa313d537b 100644
--- a/mk/compiler.mk
+++ b/mk/compiler.mk
@@ -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 @@ fail-wrapper: .USE
${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}