]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
crunchgen: slap a dependency on the generated makefile for .lo
authorKyle Evans <kevans@FreeBSD.org>
Sat, 9 Mar 2024 02:01:17 +0000 (20:01 -0600)
committerKyle Evans <kevans@FreeBSD.org>
Sat, 9 Mar 2024 02:01:25 +0000 (20:01 -0600)
commit6e2cfb24ee87fec0f538d04cd69d76a8d58c324f
treefa56952de7e8e8807d4e9d5ac3f065e073e78a99
parenta650ec0e55a9e0511321fd3e311bbd3aa46bcb12
crunchgen: slap a dependency on the generated makefile for .lo

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.

Reviewed by: bapt, emaste, imp
Differential Revision: https://reviews.freebsd.org/D43869
usr.sbin/crunch/crunchgen/crunchgen.c