-
Notifications
You must be signed in to change notification settings - Fork 63
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
Added script to build portable binaries #74
Conversation
pkg/bin/build.sh
Outdated
mkdir lib && | ||
cp libcrypto.a libssl.a lib/ && | ||
cd ../../.. && | ||
OPENSSL_DIR=$PWD/pkg/bin/openssl-$openssl_release/ cargo +nightly build --release |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need --target=x86_64-unknown-linux-musl
here, otherwise it won't be a statically linked binary.
This works but depends on where I'm running it from (e.g. running it from top-level doesn't work, I have to Also, we should pass a I wonder if there's an easy-to-use build system for this kind of stuff. It'd be great if we could cache OpenSSL builds, check for clang etc. availability easily etc. |
I accidentally stashed a commit, before fetching and rebasing, so I had to do a merge to get my stashed commit to push. Github is now not showing one of your comments, but I fixed the cd command (this is such a learning process...). Earlier, I couldn't get it working with
I don't know how to cross-compile with Rust from Arch Linux. I will look into it, but the command does work for you and @seathlin , right?
Does this need to work for more than one developer(you, when you make the binary releases)? I'm not familiar with build systems. The features you mentioned shouldn't be hard to write in bash but there may be a better way to do this. |
#65