3 ms·
Remember that ultimately, you link multiple things in, and each can be linked dynamically or statically. So, a "100% statically linked" binary would have every
by steveklabnik 9y ago
Remember that ultimately, you link multiple things in, and each can be linked dynamically or statically. So, a "100% statically linked" binary would have every library statically linked, a "100% dynamically linked" binary would have every library dynamically linked, with all the ranges in between.
This comes up with Rust due to what's in the article:
> This part can be skipped if you don’t need 100% static linking. Rust statically links most libraries by default anyway, except for things like libc.
Rust statically links Rust code by default, but has a dynamic link to libc. So Rust binaries are "mostly statically linked" for this reason. MUSL lets you link that final dependency, getting up to 100%.