diff --git a/share/mk/src.sys.env.mk b/share/mk/src.sys.env.mk index 5620d1a68d61..07436bda319a 100644 --- a/share/mk/src.sys.env.mk +++ b/share/mk/src.sys.env.mk @@ -34,4 +34,7 @@ MK_META_MODE= no .if ${MAKESYSPATH:Uno:M*.../*} != "" MAKESYSPATH:= ${MAKESYSPATH:S,.../share/mk,${.PARSEDIR:tA},} .export MAKESYSPATH +.elif empty(MAKESYSPATH) +MAKESYSPATH:= ${.PARSEDIR:tA} +.export MAKESYSPATH .endif