diff options
author | Amanieu d'Antras <amanieu@gmail.com> | 2018-07-21 05:23:14 +0100 |
---|---|---|
committer | Amanieu d'Antras <amanieu@gmail.com> | 2018-07-21 05:23:14 +0100 |
commit | 6777e63439babd69c20fc5fbe27a01dd89e9981d (patch) | |
tree | 78ff567eab5b7fe175323d0626201bb2eb4d29c5 | |
parent | 72b16d27cce111cbd4b9055d974d0ea70d152347 (diff) | |
download | rust-libc-6777e63439babd69c20fc5fbe27a01dd89e9981d.tar.gz |
Revert "Link to libgcc when statically linking musl"
This reverts commit 920cfeace9918c47cdd42214fda545f4a284cded.
-rw-r--r-- | src/unix/mod.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 5e1b8ee467..89cc1e3348 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -285,18 +285,6 @@ cfg_if! { // cargo build, don't pull in anything extra as the libstd dep // already pulls in all libs. } else if #[cfg(target_env = "musl")] { - // On some architectures (e.g. aarch64) musl depends on some libgcc - // functions (__addtf3, __multf3, __subtf3) for long double arithmetic - // that it uses internally. Unfortunately we don't provide these - // functions in compiler-builtins, so we instead need to get them from - // libgcc. - // - // This is not a problem if we are linking to libc dynamically since the - // libgcc dependency will automatically get picked up by the linker - // then. - #[cfg_attr(feature = "stdbuild", - link(name = "gcc", kind = "static", - cfg(target_feature = "crt-static")))] #[cfg_attr(feature = "stdbuild", link(name = "c", kind = "static", cfg(target_feature = "crt-static")))] |