From 575491e39f7ed2c4223461427fc792612a4f8fc1 Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Fri, 30 Dec 2022 10:06:53 +0000 Subject: Fix cross compilation --- refresh.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'refresh.sh') diff --git a/refresh.sh b/refresh.sh index 542d4da..d94502d 100755 --- a/refresh.sh +++ b/refresh.sh @@ -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 -- cgit v1.2.3-ZIG