static linking
Putting library code into the program file itself, instead of loading it from the system when the program starts.
Static linking copies library code into the executable at build time; dynamic linking resolves shared libraries (.so, .dylib, .dll) at load time. Rust links Rust crates statically by default and the platform C library dynamically (except musl).
Loading interactive…
Examples
ldd ./dockstaton a musl build printsstatically linked: the program needs no shared libraries on the server.
See also