Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add note about musl-based systems #2245

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ cargo install probe-rs --locked --features cli

This will compile the tools and place them into the cargo `bin` directory. See the [Cargo book](https://doc.rust-lang.org/cargo/commands/cargo-install.html) for details.

**Note**: If you are using a musl-based Linux system like Alpine Linux, you have to set the compiler to
dynamically link, instead of the default static linking. This prevents a [subtle bug](https://github.com/probe-rs/probe-rs/issues/2148) in `libudev-sys`<=0.1.4 from being introduced in the resulting binaries.

For musl-based systems (e.g. Alpine Linux):

```sh
RUSTFLAGS="-C target-feature=-crt-static" cargo install probe-rs --locked --features cli
```


### cargo-flash

Expand Down Expand Up @@ -181,6 +190,9 @@ Building requires Rust and Cargo which can be installed [using rustup](https://r

# Fedora
> sudo dnf install -y libudev-devel

# Alpine
> doas apk install eudev-dev
```

### Adding Targets
Expand Down