In the odd possible case of someone using "pkgsrc" underneath "src"

(even though that's still a bad idea), set USETOOLS=no explicitly before
including <bsd.own.mk>, and add this also to MAKE_ENV to make BSD-Makefile
based packages build properly.
This commit is contained in:
tv 2001-11-28 19:58:13 +00:00
parent 208d40b3a2
commit 92d724ccfe

View file

@ -1,4 +1,4 @@
# $NetBSD: bsd.prefs.mk,v 1.64 2001/11/21 14:10:06 agc Exp $
# $NetBSD: bsd.prefs.mk,v 1.65 2001/11/28 19:58:13 tv Exp $
#
# Make file, included to get the site preferences, if any. Should
# only be included by package Makefiles before any .if defined()
@ -104,6 +104,11 @@ MACHINE_GNU_PLATFORM?= ${LOWER_ARCH}-${LOWER_VENDOR}-${LOWER_OPSYS}
# from being created in bsd.own.mk.
NEED_OWN_INSTALL_TARGET=no
# This prevents default use of the cross-tool harness in the "src" tree,
# in the odd possible case of someone extracting "pkgsrc" underneath "src".
USETOOLS= no
MAKE_ENV+= USETOOLS=no
.include <bsd.own.mk>
# include the defaults file