Add an assertion to avoid the 'rm -rf /etc' case from cleanobj fixed in r325404.
Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
e84979b216
commit
c3e293f179
@ -84,6 +84,10 @@ OBJTOP?= ${MAKEOBJDIR}
|
||||
CANONICALOBJDIR:=/usr/obj${.CURDIR}
|
||||
.endif
|
||||
|
||||
.if ${CANONICALOBJDIR} == /${RELDIR} || ${.OBJDIR} == /${RELDIR}
|
||||
.error .OBJDIR incorrectly set to /${RELDIR}
|
||||
.endif
|
||||
|
||||
OBJTOP?= ${.OBJDIR:S,${.CURDIR},,}${SRCTOP}
|
||||
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user