diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-04-21 15:56:55 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-04-27 10:11:15 -0700 |
| commit | 6c048723f83fad6c96c2e19d6dfa1db547371c11 (patch) | |
| tree | f73cdb4b5a30c302af48c94fc30f126e5d734364 /src/libstd/rtdeps.rs | |
| parent | d09851730c47f49555c84b76dd6e71d91b0555ed (diff) | |
| download | rust-6c048723f83fad6c96c2e19d6dfa1db547371c11.tar.gz rust-6c048723f83fad6c96c2e19d6dfa1db547371c11.zip | |
std: Prepare for linking to musl
This commit modifies the standard library and its dependencies to link correctly when built against MUSL. This primarily ensures that the right libraries are linked against and when they're linked against they're linked against statically.
Diffstat (limited to 'src/libstd/rtdeps.rs')
| -rw-r--r-- | src/libstd/rtdeps.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/rtdeps.rs b/src/libstd/rtdeps.rs index 96c4bcec853..a7f3bc2bdc8 100644 --- a/src/libstd/rtdeps.rs +++ b/src/libstd/rtdeps.rs @@ -24,7 +24,7 @@ extern {} // // On Linux, librt and libdl are indirect dependencies via std, // and binutils 2.22+ won't add them automatically -#[cfg(target_os = "linux")] +#[cfg(all(target_os = "linux", not(target_env = "musl")))] #[link(name = "dl")] #[link(name = "pthread")] extern {} |
