aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJessica Clarke <jrtc27@FreeBSD.org>2021-03-20 13:00:34 +0000
committerJessica Clarke <jrtc27@FreeBSD.org>2021-03-20 13:00:34 +0000
commit8c9e45503fe41732f72e1a4cc9a231e63b4289ba (patch)
treec21b049c4b200a87b728b4ea0efa5f971b5dddf2 /tools
parentcf5d1112408ddef3fdff8212599727c49ba90fa4 (diff)
Diffstat (limited to 'tools')
-rw-r--r--tools/build/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/build/Makefile b/tools/build/Makefile
index effe8b9cb31d..31d027f75ce2 100644
--- a/tools/build/Makefile
+++ b/tools/build/Makefile
@@ -301,7 +301,8 @@ _host_tools_to_symlink:=${_host_tools_to_symlink:Nsh}
host-symlinks:
@echo "Linking host tools into ${DESTDIR}/bin"
.for _tool in ${_host_tools_to_symlink}
- @export PATH=$${PATH}:/usr/local/bin; source_path=`which ${_tool}`; \
+ @export PATH=$${PATH}:/usr/local/bin; \
+ source_path=`which ${_tool} || echo /dev/null/no/such`; \
if [ ! -e "$${source_path}" ] ; then \
echo "Cannot find host tool '${_tool}' in PATH ($$PATH)." >&2; false; \
fi; \