mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-27 03:51:05 +00:00
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:
parent
6855a40588
commit
9b9a0fd149
13 changed files with 13 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue