]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Handle some .OBJDIR == .CURDIR cases.
authorbdrewery <bdrewery@FreeBSD.org>
Fri, 10 Nov 2017 02:09:33 +0000 (02:09 +0000)
committerbdrewery <bdrewery@FreeBSD.org>
Fri, 10 Nov 2017 02:09:33 +0000 (02:09 +0000)
commite10157c9151153264e6899c5e2a10a495ed9f247
treef22c7de18d72d845faf0eadacb34cd6547eff233
parent7faf83af13baa1a9046e024d9a60a07069dbbc2b
Handle some .OBJDIR == .CURDIR cases.

- If OBJROOT is SRCTOP then don't add on TARGET.TARGET_ARCH.  This
  only happens at the top-level, and for sub-directories when the
  user is clever with MAKEOBJDIRPREFIX=/.
- Don't bother checking 'test -w' on .CURDIR.
- Properly set OBJTOP/OBJROOT to SRCTOP in various needed cases.
- Check if the OBJDIR is writable even for *clean* targets since it
  determines which .OBJDIR the user gets;  If they cannot write to an
  existing eligible .OBJDIR then it needs to clean in .CURDIR instead.
- Add guard to cleanworld/cleanuniverse from removing SRCTOP.
- Ensure OBJTOP is proper for .OBJDIR=.CURDIR which fixes finding
  libraries since src.libnames.mk is based on OBJTOP.
- Avoid some chdir(2) for modifying .OBJDIR

Sponsored by: Dell EMC Isilon
Makefile.inc1
share/mk/bsd.init.mk
share/mk/bsd.obj.mk
share/mk/src.sys.obj.mk