diff options
author | Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | 2021-01-06 17:51:03 +0000 |
---|---|---|
committer | Alex Richardson <arichardson@FreeBSD.org> | 2021-01-07 09:26:22 +0000 |
commit | ed8455806e88deeb7151b9bb23ad5026a36d252d (patch) | |
tree | 77778f530c26f4e3b4074c280d81dedd4f423e9d /tools/build/Makefile | |
parent | 7b0d3a3ccf8d2ea3b7c8338bdf4aa588222f6adc (diff) | |
download | src-ed8455806e88deeb7151b9bb23ad5026a36d252d.tar.gz src-ed8455806e88deeb7151b9bb23ad5026a36d252d.zip |
Fix all warnings emitted in `make kernel-toolchain`
With this change and D27598 make kernel-toolchain no longer emits any
warnings for me.
Reviewed By: emaste
Differential Revision: https://reviews.freebsd.org/D27599
Diffstat (limited to 'tools/build/Makefile')
-rw-r--r-- | tools/build/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/build/Makefile b/tools/build/Makefile index 01a29ad730af..ee9d9692df3b 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -105,9 +105,6 @@ INCS+= libcasper.h # not match. RPCINCS+= ${SRCTOP}/sys/rpc/types.h -.if ${.MAKE.OS} != "FreeBSD" -.PATH: ${.CURDIR}/cross-build - INCS+= ${SRCTOP}/include/mpool.h INCS+= ${SRCTOP}/include/ndbm.h INCS+= ${SRCTOP}/include/err.h @@ -143,6 +140,9 @@ INCS+= ${SRCTOP}/include/nlist.h SYSINCS+= ${SRCTOP}/sys/sys/imgact_aout.h SYSINCS+= ${SRCTOP}/sys/sys/nlist_aout.h + +.if ${.MAKE.OS} != "FreeBSD" +.PATH: ${.CURDIR}/cross-build # dbopen() behaves differently on Linux and FreeBSD so we ensure that we # bootstrap the FreeBSD db code. The cross-build headers #define dbopen() to # __freebsd_dbopen() so that we don't ever use the host version |