summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/bsd.pkg.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index d1e23496e5a..a3076285f5a 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.915 2002/01/27 19:07:41 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.916 2002/01/27 20:01:56 jlam Exp $
#
# This file is in the public domain.
#
@@ -20,6 +20,11 @@
##### Include any preferences, if not already included, and common definitions
.include "../../mk/bsd.prefs.mk"
+##### Prevent /etc/mk.conf from being included by a distribution's BSD-style
+##### Makefiles. We really don't want to pick up settings that are used by
+##### builds in /usr/src, e.g. DESTDIR.
+MAKE_ENV+= MAKECONF=/dev/null
+
##### Pass information about desired toolchain to package build.
.if defined(USETOOLS)
MAKE_ENV+= USETOOLS="${USETOOLS}"