Author: bdrewery
Date: Sat Nov 18 21:27:33 2017
New Revision: 325986
URL: https://svnweb.freebsd.org/changeset/base/325986

Log:
  Remove unneeded special case for .OBJDIR=.CURDIR.
  
  The else statement is already handling this by ensuring a safe .OBJDIR is 
used.
  
  Sponsored by: Dell

Modified:
  head/share/mk/src.sys.obj.mk

Modified: head/share/mk/src.sys.obj.mk
==============================================================================
--- head/share/mk/src.sys.obj.mk        Sat Nov 18 21:12:06 2017        
(r325985)
+++ head/share/mk/src.sys.obj.mk        Sat Nov 18 21:27:33 2017        
(r325986)
@@ -192,13 +192,6 @@ MK_AUTO_OBJ:=      ${__objdir_writable}
 # The expected OBJDIR already exists, set it as .OBJDIR.
 .if !empty(__objdir) && exists(${__objdir})
 .OBJDIR: ${__objdir}
-# Special case to work around bmake bug.  If the top-level .OBJDIR does not yet
-# exist and MAKEOBJDIR is passed into environment and yield a blank value,
-# bmake will incorrectly set .OBJDIR=${SRCTOP}/ rather than the expected
-# ${SRCTOP} to match ${.CURDIR}.
-.elif ${MAKE_VERSION} <= 20170720 && \
-    ${.CURDIR} == ${SRCTOP} && ${.OBJDIR} == ${SRCTOP}/
-.OBJDIR: ${.CURDIR}
 .else
 # The OBJDIR we wanted does not yet exist, ensure we default to safe .CURDIR
 # in case make started with a bogus MAKEOBJDIR, that expanded before OBJTOP
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to