diff options
author | Martin Ashby <martin@ashbysoft.com> | 2022-12-30 10:06:53 +0000 |
---|---|---|
committer | Martin Ashby <martin@ashbysoft.com> | 2022-12-30 10:06:53 +0000 |
commit | 575491e39f7ed2c4223461427fc792612a4f8fc1 (patch) | |
tree | a4a8f7c67883972ba07616055260b95922a11529 | |
parent | 481255b0d4171bcff4aa4e49eb7c02943c2f7d78 (diff) | |
download | mfashby.net-575491e39f7ed2c4223461427fc792612a4f8fc1.tar.gz mfashby.net-575491e39f7ed2c4223461427fc792612a4f8fc1.tar.bz2 mfashby.net-575491e39f7ed2c4223461427fc792612a4f8fc1.tar.xz mfashby.net-575491e39f7ed2c4223461427fc792612a4f8fc1.zip |
Fix cross compilation
-rwxr-xr-x | refresh.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -10,8 +10,8 @@ scp -r public/* root@rpi3:/var/www/mfashby.net/ # build & install comments app pushd comments -cargo build --release -scp target/release/comments root@rpi3:/usr/local/bin/comments +RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc" cargo build --target=aarch64-unknown-linux-gnu --release +scp target/aarch64-unknown-linux-gnu/release/comments root@rpi3:/usr/local/bin/comments scp comments.service root@rpi3:/etc/systemd/system/comments.service ssh root@rpi3 -C systemctl daemon-reload ssh root@rpi3 -C systemctl restart comments |