Skip to content

Commit

Permalink
fix link issues on aarch64 musl
Browse files Browse the repository at this point in the history
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.

Signed-off-by: Andreea Florescu <fandree@amazon.com>
  • Loading branch information
andreeaflorescu committed Apr 28, 2020
1 parent de09349 commit 907511a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .cargo/config
@@ -0,0 +1,5 @@
# 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"]

0 comments on commit 907511a

Please sign in to comment.