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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/bmake/; revision=284263
@ -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…
Reference in New Issue
Block a user