summaryrefslogtreecommitdiff
path: root/Makefile.sys.inc
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2017-11-18 20:01:15 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2017-11-18 20:01:15 +0000
commit7e0aabd961995cf708f5a3796163f5f5bc31ffe1 (patch)
treee06fb6b00eca714996e3bd10f78b950c27f8f471 /Makefile.sys.inc
parenta7fa261e37ba3d9983e8481d34ed14ecc16d59d9 (diff)
Fix top-level targets with read-only OBJDIR.
This also makes it so that top-level build targets do not immediately create the OBJDIR. Only sub-make targets will do so. This avoids creating object directories for targets like 'make check-old' or creating unneeded MACHINE.MACHINE_ARCH directories during 'make tinderbox'. Reported by: npn, lifanov Tested by: npn, Mark Millard Sponsored by: Dell
Notes
Notes: svn path=/head/; revision=325974
Diffstat (limited to 'Makefile.sys.inc')
-rw-r--r--Makefile.sys.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.sys.inc b/Makefile.sys.inc
index c21ed19bdc62..6bb597de2fd7 100644
--- a/Makefile.sys.inc
+++ b/Makefile.sys.inc
@@ -33,6 +33,11 @@ _CAN_USE_AUTO_OBJ?= yes
.if !defined(_CAN_USE_AUTO_OBJ)
_MAKEARGS+= MK_AUTO_OBJ=no
MK_AUTO_OBJ= no
+# This will prevent src.sys.obj.mk from opportunistically enabling AUTO_OBJ
+# in this make execution and for sub-makes. For all of these targets we
+# just want to read any existing OBJDIR but we don't care if we can create
+# or write to them.
+.MAKEOVERRIDES+= MK_AUTO_OBJ
.endif
.endif # empty(.MAKEOVERRIDES:MMK_AUTO_OBJ)