From 225529f4549dc6b46fe020e435ac1ec01a0c99be Mon Sep 17 00:00:00 2001 From: Mathijs van de Nes Date: Mon, 16 Mar 2015 15:52:10 +0100 Subject: [PATCH] Use the new pkgconfig API --- sdl2-sys/build.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sdl2-sys/build.rs b/sdl2-sys/build.rs index 8a2c6a78..6361f66c 100644 --- a/sdl2-sys/build.rs +++ b/sdl2-sys/build.rs @@ -14,8 +14,7 @@ fn build_pkgconfig() -> bool { #[cfg(feature="pkg-config")] fn build_pkgconfig() -> bool { - let opts = pkg_config::default_options("sdl2"); - if pkg_config::find_library_opts("sdl2", &opts).is_err() { + if pkg_config::find_library("sdl2").is_err() { panic!("Could not find SDL2 via pkgconfig"); } true