logoalt Hacker News

collinfunk • yesterday at 9:56 PM • 1 reply • view on HN

It is correct. But only 'date' and 'touch' use it, so I am not sure how much benefit there is in making it a shared library.

If size is really a concern, we have supported building a single 'coreutils' binary since 2014, which will be more effective in saving disk space. It can be done with './configure --enable-single-binary'.


Replies

Joker_vD • yesterday at 10:28 PM

> But only 'date' and 'touch' use it, so I am not sure how much benefit there is in making it a shared library.

There is also the rest of the whole "gnulib" folder inside the coreutils repo. Yes, I know that Gnulib explicitly states in the docs that it's a source code library but it doesn't bother to explain why exactly it chose to be that instead of being a .so à la glibc (beyond some rather unrelated "but supply chain attacks!" segment in the docs — if I cared about that, I'd statically link the relevant parts of glibc as well, in fact, that would be a much higher priority).

➕ show 1 reply