Skip to content

Commit

Permalink
vm-virtio: Fix build on aarch64+musl
Browse files Browse the repository at this point in the history
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 <sameo@linux.intel.com>
  • Loading branch information
Samuel Ortiz committed May 29, 2019
1 parent 39a50c6 commit aa3cff2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[target.aarch64-unknown-linux-musl]
rustflags = [ "-C", "target-feature=+crt-static", "-C", "link-arg=-lgcc"]

0 comments on commit aa3cff2

Please sign in to comment.