3 ms·
I expect 4 options: * glibc linked dynamically * musl linked dynamically * musl linked statically * direct syscalls from rust and possibly additional optio
by CodesInChaos 5y ago
I expect 4 options:
* glibc linked dynamically
* musl linked dynamically
* musl linked statically
* direct syscalls from rust
and possibly additional options choosing if math functions, memcpy, etc. should use an implementation shipped with rust or one shipped with libc.
The big question is if we'll get to a point where almost all rust application don't use a libc at all.
- masklinn 5y ago> * musl linked dynamically > * musl linked statically This is handled through the orthogonal "crt-static" target-feature. IIRC each supported CRT has a preference, but for some that can be overridden (musl would be one of those, possibly one of few of those since statically linking glibc is generally recommended against, and so's pretty much every non-linux libc, when that's an option at all).