Skip to content

Commit

Permalink
Add statically linking with musl details, fixes issue 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameeranjoshi committed May 10, 2021
1 parent 9ed3fd9 commit be4f32a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ cmake ../
cmake --build . -- -j 6
```

### Statically linking with musl library

The process requires you to have `musl-gcc` in your `$PATH` environment variable.
For installing musl library see this [page](https://www.musl-libc.org/how.html)
The `static` flag is used for linking statically.

```bash
export CC="musl-gcc -static -Os"
mkdir -p build && cd build
cmake ../
make -j<number of cores>

```
### Run tests

```bash
Expand Down

0 comments on commit be4f32a

Please sign in to comment.