Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upStandalone binaries for distribution #22695
Comments
e-oz
referenced this issue
Feb 23, 2015
Closed
Enforcing static linkage is impossible (and diagnosing why dynamic linking occurs is hard) #14543
This comment has been minimized.
This comment has been minimized.
|
Thanks @jamm . We try to keep the bug tracker to 'bugs only', so I'm going to give this a close. This is something that we care about, and we do have plans to make it better. You may want to post this to http://internals.rust-lang.org/ if you'd like to talk about it more :) That being said, it's not "impossible currently to create a standalone binary from a Rust program." It's that glibc cannot be statically linked. Everything else can be. |
steveklabnik
closed this
Feb 23, 2015
This comment has been minimized.
This comment has been minimized.
|
It's enough to know that you care about it :) Hope this issue will be useful at least for future readers with same question. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
e-oz commentedFeb 23, 2015
After reading comments to recent topics on HN, both are about new tools, written in Rust https://news.ycombinator.com/item?id=9087108, https://news.ycombinator.com/item?id=9088805 , I got answer from @steveklabnik that it's impossible currently to create standalone binary from a Rust programm.
It's pretty important for tools distribution, so please consider to spend some time on this issue.
By "standalone" I mean ability to just publish few binaries for most popular systems, like OS X, Linux, Win, Other (1 file per OS) and users will not have to download something else.
As an option, it could be some self-extracting installer (if it's absolutely impossible to link statically all libs into 1 executable file).