mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
Allow tools/build to work for DIRDEPS_BUILD
We want to be able to build some host tools for non-FreeBSD hosts without building more than we need. The DIRDEPS_BUILD lets us do that. We use the pseudo MACHINE "host" when building for the host - deal with that when setting _host_arch. Reviewed by: jrtc27 Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D39751
This commit is contained in:
parent
0ef30b5d6b
commit
db98bc2c0d
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue