summaryrefslogtreecommitdiff
path: root/DEPLOY.md
diff options
context:
space:
mode:
authorOrhideous <me@orhideous.name>2022-11-27 20:15:47 +0000
committerJonas Zohren <git-pbkyr@jzohren.de>2022-11-27 20:15:47 +0000
commitbcd522e75f29730109320850cb908204cb1857bb (patch)
tree8b78a0a72526ef7afccc2b6dbc5e15d31c3e1e2e /DEPLOY.md
parent249960b111be40ca9d886103c038dd2273ea8f3f (diff)
downloadconduit-bcd522e75f29730109320850cb908204cb1857bb.zip
Added cross-compilation instructions to DEPLOY.md
Diffstat (limited to 'DEPLOY.md')
-rw-r--r--DEPLOY.md20
1 files changed, 19 insertions, 1 deletions
diff --git a/DEPLOY.md b/DEPLOY.md
index c484823..89631f5 100644
--- a/DEPLOY.md
+++ b/DEPLOY.md
@@ -49,7 +49,25 @@ $ sudo apt install libclang-dev build-essential
$ cargo build --release
```
-If you want to cross compile Conduit to another architecture, read the [Cross-Compile Guide](cross/README.md).
+If you want to cross compile Conduit to another architecture, read the guide below.
+
+<details>
+<summary>Cross compilation</summary>
+
+As easiest way to compile conduit for another platform [cross-rs](https://github.com/cross-rs/cross) is recommended, so install it first.
+
+In order to use RockDB as storage backend append `-latomic` to linker flags.
+
+For example, to build a binary for Raspberry Pi Zero W (ARMv6) you need `arm-unknown-linux-gnueabihf` as compilation
+target.
+
+```bash
+git clone https://gitlab.com/famedly/conduit.git
+cd conduit
+export RUSTFLAGS='-C link-arg=-lgcc -Clink-arg=-latomic -Clink-arg=-static-libgcc'
+cross build --release --no-default-features --features conduit_bin,backend_rocksdb,jemalloc --target=arm-unknown-linux-gnueabihf
+```
+</details>
## Adding a Conduit user