The branch main has been updated by sjg:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=04989ef426f911e0d7f674f66a080a0af3376b1d

commit 04989ef426f911e0d7f674f66a080a0af3376b1d
Author:     Simon J. Gerraty <[email protected]>
AuthorDate: 2023-04-23 01:15:31 +0000
Commit:     Simon J. Gerraty <[email protected]>
CommitDate: 2023-04-23 01:15:31 +0000

    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=

Reply via email to