Re:Oasis: a small statically-linked Linux system
by zik on Tuesday December 01, 2020 @07:19PM
(#25271831)
I'm not OP but statically linking a compact libc like musl gets you just the parts of libc that you need and nothing more. This can be a lot more efficient than a dynamically linked program which has to bring in the entire bloated mess of glibc.
Whether this is a benefit when you're duplicating bits of libc across every executable in your entire system is unclear to me though.
Re:Oasis: a small statically-linked Linux system
by Subsentient on Saturday December 05, 2020 @09:27PM
(#25320480)
libc is much smaller than other libraries, and as another has pointed out, compiling it statically will get you only the symbols you actually use, so it doesn't even equal the total size of libc. Which makes more sense? Bloating your executable with ~100+MiB of Qt crap, or bloating it with 100KiB of libc symbols?
These fall under "GUI" in the "base system" category in my opinion.
> and OS facilities like libc to be statically linked.
If you're not being sarcastic right now, I'm really curious as to your reasoning.