Skip to content

Commit 9d31dc0

Browse files
author
Samuel Ortiz
committed
vm-virtio: Fix build on aarch64+musl
The linker can't find the floating point builtins. 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 Signed-off-by: Samuel Ortiz <[email protected]>
1 parent 051d5b1 commit 9d31dc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.cargo/config

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

0 commit comments

Comments
 (0)