]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Enable AUTO_OBJ by default if the OBJDIR is writable, only for in-tree builds.
authorbdrewery <bdrewery@FreeBSD.org>
Thu, 2 Nov 2017 18:09:07 +0000 (18:09 +0000)
committerbdrewery <bdrewery@FreeBSD.org>
Thu, 2 Nov 2017 18:09:07 +0000 (18:09 +0000)
commit70c391eee8036808c749516559f64edc00e22e28
tree5961bce36b8e1702d8295f1c9665af5f83570eeb
parent99511af54ac97f15f139f695aa16c629d40a64af
Enable AUTO_OBJ by default if the OBJDIR is writable, only for in-tree builds.

This can be disabled by putting WITHOUT_AUTO_OBJ=yes in /etc/src-env.conf, not
/etc/src.conf, or passing it in the environment.

The purpose of this rather than simply flipping the default of AUTO_OBJ to yes
is to avoid hassling users with auto.obj.mk failures if the wanted OBJDIR is
not writable. It will fallback to writing to the source directory like it does
today if MAKEOBJDIRPREFIX is not writable.

The act of enabling MK_AUTO_OBJ disables all 'make obj' treewalks since
previous work has made those not run if MK_AUTO_OBJ==yes in Makefile.inc1.

Relnotes: yes
Reviewed by: sjg
Discussed at: https://lists.freebsd.org/pipermail/freebsd-arch/2016-May/017805.html
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D12841
UPDATING
share/mk/src.sys.mk
share/mk/src.sys.obj.mk
share/mk/sys.mk
tools/build/options/WITHOUT_AUTO_OBJ [new file with mode: 0644]