Author: bdrewery
Date: Sat Feb 24 01:33:17 2018
New Revision: 329890
URL: https://svnweb.freebsd.org/changeset/base/329890

Log:
  Fix installation with read-only OBJDIR.
  
  Reported by:  npn
  Sponsored by: Dell EMC

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

Modified: head/share/mk/src.sys.obj.mk
==============================================================================
--- head/share/mk/src.sys.obj.mk        Sat Feb 24 01:24:57 2018        
(r329889)
+++ head/share/mk/src.sys.obj.mk        Sat Feb 24 01:33:17 2018        
(r329890)
@@ -177,7 +177,8 @@ CheckAutoObj() { \
        fi; \
 }
 .if !empty(__objdir)
-.if ${.CURDIR} == ${__objdir}
+.if ${.CURDIR} == ${__objdir} || \
+    (exists(${__objdir}) && ${.TARGETS:M*install*} == ${.TARGETS})
 __objdir_writable?= yes
 .elif empty(__objdir_writable)
 __objdir_writable!= \
_______________________________________________
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