Follow-up r325405: Only enable assertion for in-tree src builds.

Pointyhat to:	bdrewery
Reported by:	O. Hartmann <ohartmann@walstatt.org>
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Bryan Drewery 2017-11-04 21:59:54 +00:00
parent 914a5ffcbd
commit d949e92a9c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=325408

View File

@ -84,7 +84,8 @@ OBJTOP?= ${MAKEOBJDIR}
CANONICALOBJDIR:=/usr/obj${.CURDIR}
.endif
.if ${CANONICALOBJDIR} == /${RELDIR} || ${.OBJDIR} == /${RELDIR}
.if defined(SRCTOP) && \
(${CANONICALOBJDIR} == /${RELDIR} || ${.OBJDIR} == /${RELDIR})
.error .OBJDIR incorrectly set to /${RELDIR}
.endif