From c473d9aeb77866f326f9893567035bc3d61d8038 Mon Sep 17 00:00:00 2001 From: bdrewery Date: Thu, 31 Mar 2016 14:48:17 +0000 Subject: Define OBJTOP earlier if possible for use in targets. Sponsored by: EMC / Isilon Storage Division --- share/mk/local.sys.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/mk/local.sys.mk b/share/mk/local.sys.mk index ae022a1..ced441f 100644 --- a/share/mk/local.sys.mk +++ b/share/mk/local.sys.mk @@ -23,6 +23,10 @@ MAKE_PRINT_VAR_ON_ERROR += .MAKE.MAKEFILES .PATH .endif .endif +.if !empty(.OBJDIR) +OBJTOP?= ${.OBJDIR:S,${.CURDIR},,}${SRCTOP} +.endif + .include "src.sys.mk" .if ${.MAKE.MODE:Mmeta*} != "" -- cgit v1.1