From 06a2be449634e21aea7e2c12ed51ce2c8414b49b Mon Sep 17 00:00:00 2001 From: Jean-Gabriel Gill-Couture Date: Thu, 21 Aug 2025 21:58:35 -0400 Subject: [PATCH] doc: Add README explaining how to build harmony_inventory_agent statically with musl target --- harmony_inventory_agent/README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 harmony_inventory_agent/README.md diff --git a/harmony_inventory_agent/README.md b/harmony_inventory_agent/README.md new file mode 100644 index 0000000..57feb70 --- /dev/null +++ b/harmony_inventory_agent/README.md @@ -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 +``` +