diff --git a/sdl2-sys/build.rs b/sdl2-sys/build.rs index 8ac828c5c1b..30b076536dd 100644 --- a/sdl2-sys/build.rs +++ b/sdl2-sys/build.rs @@ -53,7 +53,7 @@ fn download_to(url: &str, mut dest: T) { #[cfg(feature = "static-link")] fn get_pkg_config() -> pkg_config::Library { pkg_config::Config::new() - .statik(false) + .statik(true) .probe("sdl2").unwrap() } @@ -61,7 +61,7 @@ fn get_pkg_config() -> pkg_config::Library { #[cfg(not(feature = "static-link"))] fn get_pkg_config() -> pkg_config::Library { pkg_config::Config::new() - .statik(true) + .statik(false) .probe("sdl2").unwrap() } @@ -290,4 +290,4 @@ fn generate_bindings + ::std::fmt::Debug>(target: &str, host: &str fn get_os_from_triple(triple: &str) -> Option<&str> { triple.splitn(3, "-").nth(2) -} \ No newline at end of file +}