Fixed build.rs with static & pkgconfig

This commit is contained in:
Cobrand
2017-11-03 02:12:57 +00:00
parent 0aea5b5c23
commit a006792534
+3 -3
View File
@@ -53,7 +53,7 @@ fn download_to<T: io::Write>(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<S: AsRef<str> + ::std::fmt::Debug>(target: &str, host: &str
fn get_os_from_triple(triple: &str) -> Option<&str>
{
triple.splitn(3, "-").nth(2)
}
}