Function pkg_config::get_variable
source ยท pub fn get_variable(package: &str, variable: &str) -> Result<String, Error>
Expand description
Run pkg-config
to get the value of a variable from a package using
--variable
.
The content of PKG_CONFIG_SYSROOT_DIR
is not injected in paths that are
returned by pkg-config --variable
, which makes them unsuitable to use
during cross-compilation unless specifically designed to be used
at that time.