summaryrefslogtreecommitdiff
path: root/.cargo
diff options
context:
space:
mode:
authorAndreea Florescu <fandree@amazon.com>2020-03-09 15:02:44 +0200
committerAndreea Florescu <andreea.florescu15@gmail.com>2020-09-04 17:59:53 +0300
commitd257479a40b42895b9adab11befa5385bbee0698 (patch)
treed65ef9e14a7c004ff90e775179863380cb493231 /.cargo
parent9154907c984f4b2d8e5544d7e1fe35c046236d9f (diff)
downloadvmm_vhost-d257479a40b42895b9adab11befa5385bbee0698.tar.gz
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. Signed-off-by: Andreea Florescu <fandree@amazon.com>
Diffstat (limited to '.cargo')
-rw-r--r--.cargo/config5
1 files changed, 5 insertions, 0 deletions
diff --git a/.cargo/config b/.cargo/config
new file mode 100644
index 0000000..bf8523e
--- /dev/null
+++ b/.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"]