mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Fixed build.rs with static & pkgconfig
This commit is contained in:
+3
-3
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user