Skip to content

Commit

Permalink
Document install settings for non-glibc systems
Browse files Browse the repository at this point in the history
  • Loading branch information
GladOSkar committed Feb 27, 2023
1 parent 76637e4 commit b2f6d9b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/manual_install.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@

Compilation is only tested with very recent stable versions of `rustc`. If you use a distro with older Rust packages, consider using [rustup](https://rustup.rs/) to install a newer toolchain.

On systems using alternative (non-glibc) C standard libraries like `musl`, `cargo` must be configured to not link the libc statically. Otherwise, blocks needing to link to system libraries like `temperature`, `sound` (for pulseaudio) and maybe others will not be usable due to segmentation faults. To configure `cargo` for this, just add this to your `~/.cargo/config.toml`:

```toml
[build]
rustflags = ["-C", "target-feature=-crt-static"]
```

## Build and Install from Source

```shell
Expand Down

0 comments on commit b2f6d9b

Please sign in to comment.