doc: Add README explaining how to build harmony_inventory_agent statically with musl target
Some checks failed
Run Check Script / check (pull_request) Failing after 35s
Some checks failed
Run Check Script / check (pull_request) Failing after 35s
This commit is contained in:
parent
e2a09efdee
commit
06a2be4496
22
harmony_inventory_agent/README.md
Normal file
22
harmony_inventory_agent/README.md
Normal file
@ -0,0 +1,22 @@
|
||||
## Compiling :
|
||||
|
||||
```bash
|
||||
cargo build -p harmony_inventory_agent --release --target x86_64-unknown-linux-musl
|
||||
```
|
||||
|
||||
This will create a statically linked binary that can run on pretty much any x86_64 system.
|
||||
|
||||
This requires installation of the target
|
||||
|
||||
```
|
||||
rustup target add x86_64-unknown-linux-musl
|
||||
```
|
||||
|
||||
And installation of the musl tools too.
|
||||
|
||||
On Archlinux, they can be installed with :
|
||||
|
||||
```
|
||||
pacman -S musl
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user