Skip to content

Commit 83c98b2

Browse files
andreeaflorescuSamuel Ortiz
authored and
Samuel Ortiz
committed
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: 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 681ca52 commit 83c98b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.cargo/config

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[target.aarch64-unknown-linux-musl]
2+
rustflags = [ "-C", "target-feature=+crt-static", "-C", "link-arg=-lgcc" ]
3+

0 commit comments

Comments
 (0)