From 287bbe2be592fba9db893291dd0e233a70daf17d Mon Sep 17 00:00:00 2001 From: "Simon J. Gerraty" Date: Wed, 19 Nov 2014 07:09:43 +0000 Subject: [PATCH] Use OBJTOP if defined --- share/mk/src.libnames.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/mk/src.libnames.mk b/share/mk/src.libnames.mk index 336ede11e3a6..d2dffca3236d 100644 --- a/share/mk/src.libnames.mk +++ b/share/mk/src.libnames.mk @@ -7,7 +7,11 @@ .error src.libnames.mk cannot be included directly. .endif +.if defined(OBJTOP) +ROOTOBJDIR= ${OBJTOP} +.else ROOTOBJDIR= ${.OBJDIR:S/${.CURDIR}//}${.MAKE.MAKEFILES:M*/src.libnames.mk:H:H:H} +.endif LIBATF_CDIR= ${ROOTOBJDIR}/lib/atf/libatf-c LDATF_C?= ${LIBATF_CDIR}/libatf-c.so