3 ms·
> (I was not able to figure out how to pass a static option to rustc) We statically link by default, actually: https://gist.github.com/steveklabnik/e9e744d23a7
by steveklabnik 12y ago
> (I was not able to figure out how to pass a static option to rustc)
We statically link by default, actually: https://gist.github.com/steveklabnik/e9e744d23a7a14edcd47 https://gist.github.com/steveklabnik/e9e744d23a7a14edcd47
Everything but glibc. Experimental support for musl landed a few days ago.
You can take this _really_ far: http://mainisusuallyafunction.blogspot.com/2015/01/151-byte-static-linux-binary-in-rust.html http://mainisusuallyafunction.blogspot.com/2015/01/151-byte-...
- Cyph0n 12y agoYeah, I saw that article. Damn cool stuff. That's why I'm confused about static linking in Rust. Am I doing something wrong? http://i.imgur.com/gtlJoO0.png http://i.imgur.com/gtlJoO0.png
- steveklabnik 12y agoThat's the glibc stuff I mentioned above. You generally don't statically link glibc. I don't have the setup to try out the musl stuff, but there's instructions here: https://github.com/rust-lang/rust/pull/24777 https://github.com/rust-lang/rust/pull/24777