mirror of https://github.com/chipsenkbeil/distant
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
364 B
Markdown
20 lines
364 B
Markdown
3 years ago
|
# Building from Source
|
||
|
|
||
|
## Using Cargo
|
||
|
|
||
|
```bash
|
||
|
cargo build
|
||
|
```
|
||
|
|
||
|
## Completely static binary
|
||
|
|
||
|
To compile a completely static binary (not linked to libc), we need to target
|
||
|
musl using:
|
||
|
|
||
|
```bash
|
||
|
cargo build --target x86_64-unknown-linux-musl
|
||
|
```
|
||
|
|
||
|
At the moment, this is not possible to build on M1 Macs:
|
||
|
https://github.com/FiloSottile/homebrew-musl-cross/issues/23
|