Page MenuHomeFreeBSD

crunchgen: slap a dependency on the generated makefile for .lo
ClosedPublic

Authored by kevans on Feb 13 2024, 7:04 PM.
Tags
None
Referenced Files
F136128428: D43869.diff
Sun, Nov 16, 12:28 AM
Unknown Object (File)
Sat, Nov 8, 1:03 AM
Unknown Object (File)
Mon, Nov 3, 5:34 AM
Unknown Object (File)
Wed, Oct 29, 8:48 AM
Unknown Object (File)
Wed, Oct 29, 4:51 AM
Unknown Object (File)
Tue, Oct 28, 5:03 PM
Unknown Object (File)
Sun, Oct 26, 6:34 AM
Unknown Object (File)
Mon, Oct 20, 11:51 PM
Subscribers
None

Details

Summary

crunchgen generates a foo.lo for each binary it will end up crunching
into the final product. While they have a dependency on the libs that
are used to link them, nothing will force relinking if the set of libs
needed to link them is changed. Because of this, incremental builds may
not be possible if one builds a version of, e.g., rescue/ with a broken
set of libs specified for a project -- a subsequent fix won't be rolled
in cleanly, it will require purging the rescue/ objdir.

This is a bit crude, but the foo.mk we generate doesn't actually get
regenerated all that often in practice, so a spurious relink for the
vast majority of crunched objects won't actually happen all that often.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable