Use full path to sysctl(8) since /sbin is not in PATH.

X-MFC-With:	r355379
MFC after:	2 weeks
This commit is contained in:
Bryan Drewery 2019-12-04 04:01:53 +00:00
parent ad73d2ab3f
commit efdd39d20d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355381

View File

@ -508,7 +508,7 @@ SOURCEDIR=$(realpath "$SOURCEDIR")
# Setup make to use system files from SOURCEDIR
MM_MAKE="make ${ARCHSTRING} -m ${SOURCEDIR}/share/mk -DNO_FILEMON"
MM_MAKE="${MM_MAKE} -j$(sysctl -n hw.ncpu)"
MM_MAKE="${MM_MAKE} -j$(/sbin/sysctl -n hw.ncpu)"
# Check DESTDIR against the mergemaster mtree database to see what
# files the user changed from the reference files.