Skip to content
This repository was archived by the owner on Nov 6, 2024. It is now read-only.

Commit abc9368

Browse files
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/compiler-builtins#201 A permanent fix is yet to be implemented in the Rust compiler. Signed-off-by: Andreea Florescu <[email protected]>
1 parent 6793878 commit abc9368

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.cargo/config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This workaround is needed because the linker is unable to find __addtf3,
2+
# __multf3 and __subtf3.
3+
# Related issue: https://github.com/rust-lang/compiler-builtins/issues/201
4+
[target.aarch64-unknown-linux-musl]
5+
rustflags = [ "-C", "target-feature=+crt-static", "-C", "link-arg=-lgcc"]

0 commit comments

Comments
 (0)