mirror of
https://github.com/isar/rusqlite.git
synced 2025-03-23 22:08:31 +08:00
Find the system library with minimum version 3.14.0
This commit is contained in:
parent
5f8789f165
commit
b856f11c8d
@ -430,7 +430,11 @@ mod build_linked {
|
||||
let pkgconfig_path = Path::new(&dir).join("pkgconfig");
|
||||
env::set_var("PKG_CONFIG_PATH", pkgconfig_path);
|
||||
#[cfg(not(feature = "loadable_extension"))]
|
||||
if pkg_config::Config::new().probe(link_lib).is_err() {
|
||||
if pkg_config::Config::new()
|
||||
.atleast_version("3.14.0")
|
||||
.probe(link_lib)
|
||||
.is_err()
|
||||
{
|
||||
// Otherwise just emit the bare minimum link commands.
|
||||
println!("cargo:rustc-link-lib={}={link_lib}", find_link_mode());
|
||||
println!("cargo:rustc-link-search={dir}");
|
||||
@ -444,6 +448,7 @@ mod build_linked {
|
||||
|
||||
// See if pkg-config can do everything for us.
|
||||
if let Ok(mut lib) = pkg_config::Config::new()
|
||||
.atleast_version("3.14.0")
|
||||
.print_system_libs(false)
|
||||
.probe(link_lib)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user