From 40ccddf700de0469c8210e32319bfe48127546f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Roff=C3=A9?= Date: Thu, 10 Feb 2022 08:52:41 +0100 Subject: [PATCH] sdl2-sys: Avoid to add unwanted system folder in library research paths Default pkg-config-rs behavior is to add default system library paths (ex: -L/usr/lib/x86_64-linux-gnu). This is because PKG_CONFIG_ALLOW_SYSTEM_LIBS is set by pkg-config-rs by default. print_system_libs(false) disable this behavior. More details in evdev-rs project: https://github.com/ndesh26/evdev-rs/issues/85 --- sdl2-sys/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/sdl2-sys/build.rs b/sdl2-sys/build.rs index 730cd3d783..a759d3bfaf 100644 --- a/sdl2-sys/build.rs +++ b/sdl2-sys/build.rs @@ -45,6 +45,7 @@ fn init_submodule(sdl_path: &Path) { #[cfg(feature = "use-pkgconfig")] fn pkg_config_print(statik: bool, lib_name: &str) { pkg_config::Config::new() + .print_system_libs(false) .statik(statik) .probe(lib_name) .unwrap();