build: FAST_DEPEND default (kernel first, then world)
Bryan Drewery
bdrewery at FreeBSD.org
Thu Jan 28 18:41:32 UTC 2016
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
On 1/27/16 11:27 AM, Bryan Drewery wrote:
> I have been asked to also remove the old mkdep version of 'make
> depend'.
I should note some of the bugs with the old 'mkdep' method that are
fixed by the FAST_DEPEND method, for world.
1. CXXFLAGS/CFLAGS are not passed properly from Makefile.inc1 for
external toolchain with gcc. A DEPFLAGS hack was added to address
this. The problem being that we pass CFLAGS via CC="${CC} ${CFLAGS}"
from Makefile.inc1 rather than a CFLAGS_APPEND that mkdep can pick up.
2. CFLAGS=-include was ignored in mkdep until r294370.
3. Avoiding ccache for mkdep involves annoying hacks that broke
someone's build (unfixed)
4. ccache can't benefit from mkdep
5. Similar to -include, we only pass certain flags to mkdep which is a
maintenance problem.
6. It hides dependency problems due to 'requiring' running 'make
depend' before build. A goal with FAST_DEPEND is to not need this,
which has proven to be fine. DPSRCS was widely abused and fixed. It
should not even exist really, it's not needed.
- --
Regards,
Bryan Drewery
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org
iQEcBAEBCgAGBQJWqmDVAAoJEDXXcbtuRpfPd6gH/1EqBsKQGn8qApzVUHJnrzGL
lJGbD+zZVY2RjmpChMLYA4cJu0lA9edKB2oj5pIQWXDZK6rO2Q7ekAElVE64gnDw
UsMeAi6v0m5/UwSGvLYHW1Nm7q/j0JTcIKXRpbseI3a40Gervdxmswrw0vGGWBEp
Hg+nfeiiEFjR84lBvfwynoHjtGb3ovakPo6lGVVNHD5LIpEwuSxaldWb99uoPbDt
h5iqWICvVbR4ugxEstGdPnx/6bMof+WngiQssc+8ZEiDQ0uuXneI7fyFaEd3MYCZ
+LdswwPA1cJPpDmCif/fRxDWoCAQum0HGPGB2bkXRdwERMOVltRsiDEWr/kM6Ko=
=mCSt
-----END PGP SIGNATURE-----
More information about the freebsd-arch
mailing list