Skip to content

Commit

Permalink
feat: make static build default
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrpdev committed Sep 7, 2024
1 parent 5419443 commit d7d2b8f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
rustflags = ["-C", "target-feature=+crt-static"]
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ rustup target add armv7-unknown-linux-gnueabihf

# Build
cargo build --release --target=armv7-unknown-linux-gnueabihf
# ...or statically
RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target=armv7-unknown-linux-gnueabihf
```

You can then copy and run the outputted binary like this:
Expand Down

0 comments on commit d7d2b8f

Please sign in to comment.