From e712d6ae231456ee9e6c0b831fadb3f2dc1acf03 Mon Sep 17 00:00:00 2001 From: Andreea Florescu Date: Thu, 30 Jan 2020 12:48:58 +0200 Subject: [PATCH] fix 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: rust-lang-nursery/compiler-builtins#201 A permanent fix is yet to be implemented in the Rust compiler. Signed-off-by: Andreea Florescu --- .cargo/config | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .cargo/config diff --git a/.cargo/config b/.cargo/config new file mode 100644 index 0000000..bf21d1d --- /dev/null +++ b/.cargo/config @@ -0,0 +1,6 @@ +# This workaround is needed because the linker is unable to find __addtf3, +# __multf3 and __subtf3. +# Related issue: https://github.com/rust-lang/compiler-builtins/issues/201 +[target.aarch64-unknown-linux-musl] +rustflags = [ "-C", "target-feature=+crt-static", "-C", "link-arg=-lgcc"] +