Skip to content

Commit 1bb39ce

Browse files
committed
docs: document MUSL build
1 parent 61fdd7e commit 1bb39ce

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ This is a tool to process logs produced by the [sslkeylog](https://github.com/dr
66

77
[UPX](https://github.com/upx/upx) is used to reduce binary size, if you prefer not using it, just skip it.
88

9+
You may want to build [MUSL](https://musl.libc.org/)-based static build if your build system's glibc is different from the target one. To prepare the environment do the following:
10+
```shell
11+
sudo apt install musl-tools
12+
rustup target add x86_64-unknown-linux-musl
13+
```
14+
Then just use:
15+
`cargo build --release --target x86_64-unknown-linux-musl && upx --best target/x86_64-unknown-linux-musl/release/sslkeylog-processor`
16+
917
## Usage
1018
Run the built binary to determine the command-line options.
1119
On Windows, file names support [wildcard expansion](https://docs.rs/glob/), on other OSes shell expansion is expected to take care of that.

0 commit comments

Comments
 (0)