With MK_AUTO_OBJ=yes objdir is created during sys.mk
If a makefile sets NO_OBJ, we should honor that by setting .OBJDIR back to .CURDIR
This commit is contained in:
parent
92f755617b
commit
e5b44e3743
@ -47,6 +47,10 @@ __<bsd.obj.mk>__:
|
||||
objwarn:
|
||||
obj:
|
||||
CANONICALOBJDIR= ${.OBJDIR}
|
||||
.if defined(NO_OBJ)
|
||||
# but this makefile does not want it!
|
||||
.OBJDIR: ${.CURDIR}
|
||||
.endif
|
||||
.elif defined(MAKEOBJDIRPREFIX)
|
||||
CANONICALOBJDIR:=${MAKEOBJDIRPREFIX}${.CURDIR}
|
||||
.elif defined(MAKEOBJDIR) && ${MAKEOBJDIR:M/*} != ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user