aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/mk/local.meta.sys.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/local.meta.sys.mk b/share/mk/local.meta.sys.mk
index b4109a397009..ef7ddc3c53c8 100644
--- a/share/mk/local.meta.sys.mk
+++ b/share/mk/local.meta.sys.mk
@@ -4,7 +4,7 @@
# XXX some of this should be in meta.sys.mk
# we assume that MK_META_MODE=yes
-.if ${.MAKE.LEVEL} == 0
+.if empty(OBJROOT) || ${.MAKE.LEVEL} == 0
.if !empty(SB)
SB_OBJROOT ?= ${SB}/obj/
# this is what we use below