Commit 3f5c74a
committed
Document Alpine Linux build quirk in
On Alpine Linux and other musl-based distributions, the
`x86_64-unknown-linux-musl` Rust target statically links musl by
default. When the binary dynamically links to Alpine's OpenSSL (which
itself links to Alpine's musl), two different musl instances exist in
the same process, causing segmentation faults at runtime.
This change adds `BUILD.md` documenting the issue and the solution:
setting `RUSTFLAGS="-C target-feature=-crt-static"` to dynamically link
musl. The document includes the root cause explanation, the fix, and
references to the original discussions.BUILD.md
1 parent eb0eab1 commit 3f5c74a
1 file changed
+32
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
0 commit comments