aboutsummaryrefslogtreecommitdiff
path: root/tools/build/Makefile
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2023-04-22 19:25:54 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2023-04-22 19:25:54 +0000
commitdb98bc2c0d3aae1772ee773c22c8d01d2add6c92 (patch)
tree69d44b05d5f9aed46747cc09f87661b0936a3669 /tools/build/Makefile
parent0ef30b5d6b75596e087a86c3cb01a0b2c611e7e6 (diff)
Diffstat (limited to 'tools/build/Makefile')
-rw-r--r--tools/build/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/build/Makefile b/tools/build/Makefile
index 922d86dba7e7..a1b8bbb8b2aa 100644
--- a/tools/build/Makefile
+++ b/tools/build/Makefile
@@ -125,7 +125,11 @@ CHACHA20INCSDIR= ${INCLUDEDIR}/crypto/chacha20
CHACHA20INCS+= ${SRCTOP}/sys/crypto/chacha20/_chacha.h \
${SRCTOP}/sys/crypto/chacha20/chacha.h
+.if ${MACHINE} == "host"
+_host_arch= ${_HOST_ARCH}
+.else
_host_arch=${MACHINE}
+.endif
.if ${_host_arch} == "x86_64"
# bmake on Linux/mac often prints that instead of amd64
_host_arch=amd64