]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Avoid depending on system headers from the source tree during bootstrap
authorAlex Richardson <arichardson@FreeBSD.org>
Mon, 20 Aug 2018 10:39:42 +0000 (10:39 +0000)
committerAlex Richardson <arichardson@FreeBSD.org>
Mon, 20 Aug 2018 10:39:42 +0000 (10:39 +0000)
commit958dc017a7391616a2b89f1177878a09a3f2a51b
tree33deead586f3ae288009c998ddaa471f64c03417
parentec45ce6222366e69adf1fad1b33ec8598229c8c0
Avoid depending on system headers from the source tree during bootstrap

This can cause surprising errors if the build tools is built against
headers that don't match the host system. It is also required in order
to allow building on non-FreeBSD systems where the headers in
/usr/include/sys are usually completely incompatible with those in the
source tree.

I added an error to Makefile.boot if this is done and found this was
only the case in libnv. With this error in the Makefile ABI breakages
such as r336019 should no longer be possible.

Reviewed By: bdrewery, kevans
Approved By: jhb (mentor)
Differential Revision: https://reviews.freebsd.org/D16186
tools/build/mk/Makefile.boot