fix for openbsd link with -lcrypto

master
Niko PLP 2 years ago
parent 46bc698948
commit 91f91c73ee
  1. 2
      librocksdb-sys/Cargo.toml
  2. 5
      librocksdb-sys/build.rs

@ -32,7 +32,7 @@ zstd-sys = { version = "2.0", features = ["zdict_builder"], optional = true }
libz-sys = { version = "1.1", default-features = false, optional = true }
bzip2-sys = { version = "0.1", default-features = false, optional = true }
[target."cfg(not(any(target_os = \"linux\",target_os = \"darwin\",target_os = \"openbsd\")))".dependencies.openssl]
[target.'cfg(not(any(target_os = "linux",target_os = "darwin",target_os = "openbsd")))'.dependencies.openssl]
version = "0.10"
features = ["vendored"]

@ -232,8 +232,9 @@ if !target.contains("openbsd") {
config.define("_REENTRANT", None);
config.include("rocksdb/plugin/openssl/include");
lib_sources.push("plugin/openssl/openssl_provider.cc");
let dir = env::var("CARGO_MANIFEST_DIR").unwrap();
println!("cargo:rustc-link-lib=static=crypto");
// let dir = env::var("CARGO_MANIFEST_DIR").unwrap();
println!("cargo:rustc-link-arg=-lcrypto");
// println!("cargo:rustc-link-lib=static=crypto");
} else if target.contains("windows") {
link("rpcrt4", false);
link("shlwapi", false);

Loading…
Cancel
Save