From aa3cff22335ca36301a094cb5f73308fdb0c88e9 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Tue, 21 May 2019 14:23:16 +0200 Subject: [PATCH] vm-virtio: Fix build on aarch64+musl The linker can't find the floating point builtins. Added target-feature=+crt-static and link-arg=-lgcc as a temporary workaround. This seems to be the accepted fix in the Rust community: rust-lang-nursery/compiler-builtins#201 Signed-off-by: Samuel Ortiz --- .cargo/config | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .cargo/config diff --git a/.cargo/config b/.cargo/config new file mode 100644 index 00000000..02cbaf3a --- /dev/null +++ b/.cargo/config @@ -0,0 +1,2 @@ +[target.aarch64-unknown-linux-musl] +rustflags = [ "-C", "target-feature=+crt-static", "-C", "link-arg=-lgcc"]