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
Unknown Object (File)
Sat, Nov 16, 12:07 AM
Unknown Object (File)
Sep 27 2024, 10:21 PM
Unknown Object (File)
Sep 18 2024, 9:34 PM
Unknown Object (File)
Sep 17 2024, 6:07 PM
Unknown Object (File)
Sep 4 2024, 8:22 AM
Unknown Object (File)
Aug 20 2024, 6:18 AM
Unknown Object (File)
Aug 20 2024, 6:18 AM
Unknown Object (File)
Aug 20 2024, 6:17 AM
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