I'm taking my first steps at building coreutils from scratch, and I'm interested in how I would limit the build to a subset of the full list of tools. From my investigations, it seems to me that I can modify build-aux/gen-lists-of-programs.sh to limit the list of tools that get built - but that does not seem to remove the unneeded parts of gnulib. It looks like I can remove the parts of gnulib that I don't need by modifying bootstrap.conf.
However, short of manually analysing each of the tools that I include, I don't see a way of determining which gnulib functions can be omitted - i.e. a list of which tools use which gnulib facilities.
As an example, if I *just* wanted to build numfmt, sort, and date, how would I establish what to include?
Thanks in advance,
Paul.