all around: disable print_system_libs in calls to pkg-config

By default, pkg-config-rs sets the PKG_CONFIG_ALLOW_SYSTEM_LIBS
environment variable
(https://github.com/alexcrichton/pkg-config-rs/pull/35), which leads
to eg /usr/lib being present in the middle of the final command,
in turn leading to issues when working in an uninstalled environment,
where libraries that are also present system-wide do not get linked
against.
This commit is contained in:
Mathieu Duponchelle 2018-02-21 18:43:31 +01:00 committed by Sebastian Dröge
parent 6855a40588
commit 9b9a0fd149
13 changed files with 13 additions and 0 deletions

View file

@ -45,6 +45,7 @@ fn find() -> Result<(), Error> {
let mut config = Config::new();
config.atleast_version(version);
config.print_system_libs(false);
if hardcode_shared_libs {
config.cargo_metadata(false);
}

View file

@ -45,6 +45,7 @@ fn find() -> Result<(), Error> {
let mut config = Config::new();
config.atleast_version(version);
config.print_system_libs(false);
if hardcode_shared_libs {
config.cargo_metadata(false);
}

View file

@ -49,6 +49,7 @@ fn find() -> Result<(), Error> {
let mut config = Config::new();
config.atleast_version(version);
config.print_system_libs(false);
if hardcode_shared_libs {
config.cargo_metadata(false);
}

View file

@ -33,6 +33,7 @@ fn find() -> Result<(), Error> {
let mut config = Config::new();
config.atleast_version(version);
config.print_system_libs(false);
if hardcode_shared_libs {
config.cargo_metadata(false);
}

View file

@ -45,6 +45,7 @@ fn find() -> Result<(), Error> {
let mut config = Config::new();
config.atleast_version(version);
config.print_system_libs(false);
if hardcode_shared_libs {
config.cargo_metadata(false);
}

View file

@ -43,6 +43,7 @@ fn find() -> Result<(), Error> {
let mut config = Config::new();
config.atleast_version(version);
config.print_system_libs(false);
if hardcode_shared_libs {
config.cargo_metadata(false);
}

View file

@ -33,6 +33,7 @@ fn find() -> Result<(), Error> {
let mut config = Config::new();
config.atleast_version(version);
config.print_system_libs(false);
if hardcode_shared_libs {
config.cargo_metadata(false);
}

View file

@ -45,6 +45,7 @@ fn find() -> Result<(), Error> {
let mut config = Config::new();
config.atleast_version(version);
config.print_system_libs(false);
if hardcode_shared_libs {
config.cargo_metadata(false);
}

View file

@ -47,6 +47,7 @@ fn find() -> Result<(), Error> {
let mut config = Config::new();
config.atleast_version(version);
config.print_system_libs(false);
if hardcode_shared_libs {
config.cargo_metadata(false);
}

View file

@ -45,6 +45,7 @@ fn find() -> Result<(), Error> {
let mut config = Config::new();
config.atleast_version(version);
config.print_system_libs(false);
if hardcode_shared_libs {
config.cargo_metadata(false);
}

View file

@ -49,6 +49,7 @@ fn find() -> Result<(), Error> {
let mut config = Config::new();
config.atleast_version(version);
config.print_system_libs(false);
if hardcode_shared_libs {
config.cargo_metadata(false);
}

View file

@ -45,6 +45,7 @@ fn find() -> Result<(), Error> {
let mut config = Config::new();
config.atleast_version(version);
config.print_system_libs(false);
if hardcode_shared_libs {
config.cargo_metadata(false);
}

View file

@ -49,6 +49,7 @@ fn find() -> Result<(), Error> {
let mut config = Config::new();
config.atleast_version(version);
config.print_system_libs(false);
if hardcode_shared_libs {
config.cargo_metadata(false);
}