Skip to content

Commit

Permalink
Fixed build.rs with static & pkgconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Cobrand committed Nov 3, 2017
1 parent 0aea5b5 commit a006792
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdl2-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ 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()
}

#[cfg(feature = "use-pkgconfig")]
#[cfg(not(feature = "static-link"))]
fn get_pkg_config() -> pkg_config::Library {
pkg_config::Config::new()
.statik(true)
.statik(false)
.probe("sdl2").unwrap()
}

Expand Down Expand Up @@ -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)
}
}

0 comments on commit a006792

Please sign in to comment.