Skip to content

Commit

Permalink
README.md: add musl static build instructions (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitris authored Nov 21, 2022
1 parent 53d71d2 commit 3b99e95
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ cargo xtask build-ebpf --release
cargo build --release
```

If you want to build a static binary with musl, install the musl target and pass the `--target` parameter to `cargo build`:
```
rustup target add x86_64-unknown-linux-musl
cargo xtask build-ebpf --release
cargo build --release --release --target=x86_64-unknown-linux-musl
```

To run the program:
```
# release build
Expand Down

0 comments on commit 3b99e95

Please sign in to comment.