Author: bdrewery
Date: Fri Nov  3 01:09:35 2017
New Revision: 325351
URL: https://svnweb.freebsd.org/changeset/base/325351

Log:
  AUTO_OBJ: If the wanted .OBJDIR was not used then disable the feature.
  
  This is to prevent downstream checks from assuming they can trust .OBJDIR when
  MK_AUTO_OBJ is yes, such as the bsd.obj.mk checks.
  
  Pointyhat to: bdrewery
  Sponsored by: Dell EMC Isilon

Modified:
  head/share/mk/sys.mk

Modified: head/share/mk/sys.mk
==============================================================================
--- head/share/mk/sys.mk        Fri Nov  3 00:29:42 2017        (r325350)
+++ head/share/mk/sys.mk        Fri Nov  3 01:09:35 2017        (r325351)
@@ -120,8 +120,14 @@ NO_META_IGNORE_HOST_HEADERS=       1
 # is not expected.
 .if !make(showconfig) && !make(print-dir)
 .sinclude <auto.obj.mk>
+# The .OBJDIR was not set, disable MK_AUTO_OBJ so downstream checks won't
+# assume .OBJDIR is proper.
+.if defined(__objdir) && ${.OBJDIR} != ${__objdir}
+.MAKEOVERRIDES+= MK_AUTO_OBJ
+MK_AUTO_OBJ=   no
 .endif
 .endif
+.endif # ${MK_AUTO_OBJ} == "yes"
 .else # bmake
 .include <bsd.mkopt.mk>
 .endif
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to