8 ms·
Dynamic linking is fully supported by Rust. Just pass -C prefer-dynamic in your RUSTFLAGS.
by pcwalton 9y ago
Dynamic linking is fully supported by Rust. Just pass -C prefer-dynamic in your RUSTFLAGS.
- v_lisivka 9y agoBut ABI is not fixed yet, so all libraries and binary must be compiled by same compiler with same options.
- tmzt 9y agoSince the parent mentioned installing using a package manager, could it be default in that case as well as in the `cargo install` case where cargo essentially controls the binary? If not default, could it be more easily chosen with a shorter option? Is a rust heap/runtime packaged for distros like Debian which have packaged binaries of some crates? Note, I'm not in favor of making dynamic default for `cargo build`.