Add script to build static binary and put it in ./
This commit is contained in:
7
build-static.bash
Executable file
7
build-static.bash
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
|
||||
export RUSTFLAGS='-C target-feature=+crt-static'
|
||||
cargo build --release --target x86_64-unknown-linux-gnu
|
||||
cp target/x86_64-unknown-linux-gnu/release/keep-rust ./
|
||||
Reference in New Issue
Block a user