From 5910ef0b4afc6ab5946c5075ab5b9a34175761c6 Mon Sep 17 00:00:00 2001 From: Andrew Phillips Date: Thu, 31 Aug 2023 19:39:23 +0000 Subject: [PATCH] Add script to build static binary and put it in ./ --- build-static.bash | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 build-static.bash diff --git a/build-static.bash b/build-static.bash new file mode 100755 index 0000000..9ba672e --- /dev/null +++ b/build-static.bash @@ -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 ./