2 ms·
The real problem is that glibc has a hard time being statically linked. We just use the native system C library in Rust, which on Linux is usually glibc. We co
by pcwalton 12y ago
The real problem is that glibc has a hard time being statically linked. We just use the native system C library in Rust, which on Linux is usually glibc.
We could focus on musl support in order to get true static linking, but there are much higher priority things like 1.0 stability, optimizations, and compiler performance (though we'd take a patch of course). The fact is that pure static linking is rarely done anymore, at least on mainstream desktop/mobile/server systems, so it's not on anybody's critical path.
Dynamically linking to glibc does not really provide "better compile-time optimizations". LLVM already understands the libc functions that really benefit from inlining, like memcpy.