Skip to content

Commit 31b08a4

Browse files
committed
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: ndesh26/evdev-rs#85
1 parent 795fe02 commit 31b08a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sdl2-sys/build.rs

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ fn init_submodule(sdl_path: &Path) {
4545
#[cfg(feature = "use-pkgconfig")]
4646
fn pkg_config_print(statik: bool, lib_name: &str) {
4747
pkg_config::Config::new()
48+
.print_system_libs(false)
4849
.statik(statik)
4950
.probe(lib_name)
5051
.unwrap();

0 commit comments

Comments
 (0)