Created
October 22, 2023 13:18
-
-
Save susilolab/d19a8bf7127ebc09c7ec35a6887e9f31 to your computer and use it in GitHub Desktop.
Compile rust secara static binary
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
#!/bin/bash | |
RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target x86_64-unknown-linux-musl | |
# hasil compile diatas akan bisa dieksekusi disemua os linux |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment