Re:Why has Plan 9 chosen statically linked binaries instead ...
by nwmcsween on Saturday February 16, 2019 @12:35AM
(#19177261)
The library/project has to be designed right. Musl has dummy references that make static linking work without pulling in a bunch of junk. This is very much a language/project issue and I wish more languages actually looked at the huge mess of dep graphs that are needed for simple programs.
FWIW, I believe (but could very well be wrong) the reason that this works this well with MUSL is that every function is defined in its own translation unit. I doubt that Qt and KDE do that.