From 51fd8c7c08aea1e2108ab108b44846c7b5326139 Mon Sep 17 00:00:00 2001 From: Andreea Florescu Date: Tue, 6 Apr 2021 14:40:57 +0300 Subject: [PATCH] fixed link issues on aarch64 musl The linker was unable to find __addtf3, __multf3 and __subtf3. Added target-feature=+crt-static and link-arg=-lgcc as a temporary workaround. This seems to be the accepted fix in the Rust community: https://github.com/rust-lang-nursery/compiler-builtins/issues/201 A permanent fix is yet to be implemented in the Rust compiler. Signed-off-by: Andreea Florescu --- .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 0000000..f4a0713 --- /dev/null +++ b/.cargo/config @@ -0,0 +1,2 @@ +[target.aarch64-unknown-linux-musl] +rustflags = [ "-C", "target-feature=+crt-static", "-C", "link-arg=-lgcc" ]