summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjmc <jmc@pkgsrc.org>2003-08-04 21:06:47 +0000
committerjmc <jmc@pkgsrc.org>2003-08-04 21:06:47 +0000
commit04f347260ca81311b856ffb21b4e14f22a072f5d (patch)
treea09ac76275d01bf8008fda96ec50bd9dbe99c692 /mk
parent1ed88388b955a4a64bc58ae87124bc46e27469f2 (diff)
downloadpkgsrc-04f347260ca81311b856ffb21b4e14f22a072f5d.tar.gz
Provide a new variable NO_EXPORT_CPP to further restrict CPP from getting into
MAKE_ENV. There is no effective way to unset CPP otherwise and there are some packages (the cross compilers using gcc) where having CPP set will break things.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index d0d91c6152d..4b2ffafe6a0 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1229 2003/08/02 13:17:05 wiz Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1230 2003/08/04 21:06:47 jmc Exp $
#
# This file is in the public domain.
#
@@ -340,7 +340,7 @@ MAKE_ENV+= CC="${CC}"
.if defined(CXX)
MAKE_ENV+= CXX="${CXX}"
.endif
-.if defined(CPP)
+.if defined(CPP) && !defined(NO_EXPORT_CPP)
MAKE_ENV+= CPP="${CPP}"
.endif
@@ -549,7 +549,7 @@ PLIST_SUBST+= PERL5_ARCHLIB=${PERL5_ARCHLIB:S/^${LOCALBASE}\///}
.endif
# base vs. GNU tools
-.include "../../mk/tools.mk"
+. include "../../mk/tools.mk"
.if defined(USE_NEW_TEXINFO)
INFO_FILES?=