Skip to content

Commit b2f6d9b

Browse files
committed
Document install settings for non-glibc systems
See greshake#1786
1 parent 76637e4 commit b2f6d9b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/manual_install.md

+7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77

88
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.
99

10+
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`:
11+
12+
```toml
13+
[build]
14+
rustflags = ["-C", "target-feature=-crt-static"]
15+
```
16+
1017
## Build and Install from Source
1118

1219
```shell

0 commit comments

Comments
 (0)