From 2d6bcf2fd6826b5a795c5cc078b4bfcc5cea4140 Mon Sep 17 00:00:00 2001 From: catt-io Date: Wed, 24 Jul 2019 17:40:42 +1200 Subject: [PATCH] Revert "Homebrew packages are called libSDL2main and libSDL2" This reverts commit a731b12f09015eab9486f7a8b0a90896f5d295a0. --- sdl2-sys/build.rs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/sdl2-sys/build.rs b/sdl2-sys/build.rs index b9cb7c8a..92850bc9 100644 --- a/sdl2-sys/build.rs +++ b/sdl2-sys/build.rs @@ -309,16 +309,8 @@ fn link_sdl2(target_os: &str) { #[cfg(feature = "static-link")] { if cfg!(feature = "bundled") || cfg!(feature = "use-pkgconfig") == false { - if target_os == "darwin" { - println!("cargo:rustc-link-lib=static=libSDL2main"); - println!("cargo:rustc-link-lib=static=libSDL2"); - } - else { - println!("cargo:rustc-link-lib=static=SDL2main"); - println!("cargo:rustc-link-lib=static=SDL2"); - } - - + println!("cargo:rustc-link-lib=static=SDL2main"); + println!("cargo:rustc-link-lib=static=SDL2"); } // Also linked to any required libraries for each supported platform