Skip to content

Commit

Permalink
Don't needless link to libresolv on Darwin in libstd
Browse files Browse the repository at this point in the history
  • Loading branch information
thomcc committed Oct 7, 2022
1 parent 233384f commit 2618f7a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions library/std/src/sys/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,16 +352,12 @@ cfg_if::cfg_if! {
extern "C" {}
} else if #[cfg(target_os = "macos")] {
#[link(name = "System")]
// res_init and friends require -lresolv on macOS/iOS.
// See #41582 and https://blog.achernya.com/2013/03/os-x-has-silly-libsystem.html
#[link(name = "resolv")]
extern "C" {}
} else if #[cfg(any(target_os = "ios", target_os = "watchos"))] {
#[link(name = "System")]
#[link(name = "objc")]
#[link(name = "Security", kind = "framework")]
#[link(name = "Foundation", kind = "framework")]
#[link(name = "resolv")]
extern "C" {}
} else if #[cfg(target_os = "fuchsia")] {
#[link(name = "zircon")]
Expand Down

0 comments on commit 2618f7a

Please sign in to comment.