From 04989ef426f911e0d7f674f66a080a0af3376b1d Mon Sep 17 00:00:00 2001 From: "Simon J. Gerraty" Date: Sat, 22 Apr 2023 18:15:31 -0700 Subject: [PATCH] bmake 20230123 gives us .SYSPATH No need to faff about trying to work out where bmake is looking - it tells you. --- share/mk/bsd.symver.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/mk/bsd.symver.mk b/share/mk/bsd.symver.mk index a7bffad5ceae..1969097b7089 100644 --- a/share/mk/bsd.symver.mk +++ b/share/mk/bsd.symver.mk @@ -14,6 +14,9 @@ VERSION_MAP?= Version.map CLEANFILES+= ${VERSION_MAP} +.if ${MAKE_VERSION} >= 20230123 +_mpath= ${.SYSPATH} +.else # Compute the make's -m path. _mpath= _oarg= @@ -24,6 +27,7 @@ _mpath+= ${_arg} _oarg= ${_arg} .endfor _mpath+= /usr/share/mk +.endif # Look up ${VERSION_GEN} in ${_mpath}. _vgen=