diff options
author | rillig <rillig> | 2006-07-22 05:01:17 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-07-22 05:01:17 +0000 |
commit | 1734645c7f2884f6fe2a012e0a8e12de40a4870e (patch) | |
tree | 04345177aad959bdf7479da8e76f9d5d8f517572 /mk/compiler.mk | |
parent | b48724ddbd46ad7aa457dc5e2b7d494aa15f399a (diff) | |
download | pkgsrc-1734645c7f2884f6fe2a012e0a8e12de40a4870e.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.
Diffstat (limited to 'mk/compiler.mk')
-rw-r--r-- | mk/compiler.mk | 6 |
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} |