-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to cross compile release binaries? #21
Comments
https://github.com/japaric/rust-cross
|
|
There is a lot to think about. Some of them are mentioned in the rust-cross. The problem
Furthermore, I would like to point out that (different) compiler do some optimization for (different) CPU architecture. For the best performance, just build it on the target machine. Also you can specify |
I encountered some errors under target "x86_64-unknown-linux-gnu" https://github.com/dockcross/dockcross
|
In this case, your You need to:
tips: It's much easier to build with the
brew tap SergioBenitez/osxct
brew install x86_64-unknown-linux-gnu
brew install FiloSottile/musl-cross/musl-cross
[target.x86_64-unknown-linux-musl]
linker = "x86_64-linux-musl-gcc"
[target.x86_64-unknown-linux-gnu]
linker = "x86_64-unknown-linux-gnu-gcc" |
We can compile openssl to static library with Unfortunately, the compiling will fail at rocksdb. After I read the gcc book. It's almost impossible to compile with So I focus on
Q: Why Q: Why |
👍 |
No description provided.
The text was updated successfully, but these errors were encountered: