Add local.meta.stage.mk

We need to undo NO_OBJ if we are staging
as it causes us to drop the stage* target cookies in src tree
which is bad, and may break doing the same targets for multiple
architectures.

Reviewed by:	stevek
This commit is contained in:
Simon J. Gerraty
2024-10-16 09:25:16 -07:00
parent 45fe5580cd
commit c5c0e79bb0
+6
View File
@@ -0,0 +1,6 @@
.if defined(NO_OBJ) && ${__objdir:U${.CURDIR}} != ${.CURDIR}
# NO_OBJ would cause us to dribble stage* into .CURDIR
# which will prevent the targets being done for multiple MACHINES
.undef NO_OBJ
.OBJDIR: ${__objdir}
.endif