diff options
author | Bryan Drewery <bdrewery@FreeBSD.org> | 2017-12-05 21:29:47 +0000 |
---|---|---|
committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2017-12-05 21:29:47 +0000 |
commit | e22224a5c2d2d492e5f93fb96390e37b99c6bbe3 (patch) | |
tree | 6d4f7aa26978684b00827206557f14a018906de5 /Makefile.sys.inc | |
parent | 34b8ef3d7762d87edeb615ca30d157c92a7c6251 (diff) | |
download | src-test2-e22224a5c2d2d492e5f93fb96390e37b99c6bbe3.tar.gz src-test2-e22224a5c2d2d492e5f93fb96390e37b99c6bbe3.zip |
AUTO_OBJ: For all top-level targets enforce using an OBJDIR.
This will cause an error if the wanted OBJDIR is not writable. Previously it
would cause the files to generate to the source tree. This was too obscure and
things like buildworld really expect a proper OBJDIR layout.
Sponsored by: Dell EMC
Notes
Notes:
svn path=/head/; revision=326580
Diffstat (limited to 'Makefile.sys.inc')
-rw-r--r-- | Makefile.sys.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.sys.inc b/Makefile.sys.inc index 6bb597de2fd7..c659234e9dff 100644 --- a/Makefile.sys.inc +++ b/Makefile.sys.inc @@ -38,6 +38,10 @@ MK_AUTO_OBJ= no # just want to read any existing OBJDIR but we don't care if we can create # or write to them. .MAKEOVERRIDES+= MK_AUTO_OBJ +.else +# For top-level we always assume the MAKEOBJDIRPREFIX is writable rather than +# falling back to .CURDIR. +__objdir_writable= yes .endif .endif # empty(.MAKEOVERRIDES:MMK_AUTO_OBJ) |