Created
April 6, 2022 07:31
-
-
Save ugovaretto/9e4e1ae6bc9588ceb23afface67a6d3c to your computer and use it in GitHub Desktop.
Static compilation of Rust binaries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target x86_64-unknown-linux-gnu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment