Fix build on *BSD
This commit is contained in:
parent
ee66da6060
commit
5fdde8bda3
|
|
@ -27,6 +27,13 @@ fn main() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if target.contains("bsd") {
|
||||||
|
println!("cargo:rustc-flags=-l crypto -l ssl");
|
||||||
|
// going to assume the base system includes a new version of openssl
|
||||||
|
build_old_openssl_shim(false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if pkg_config::Config::new().atleast_version("1.0.0").find("openssl").is_ok() {
|
if pkg_config::Config::new().atleast_version("1.0.0").find("openssl").is_ok() {
|
||||||
build_old_openssl_shim(false);
|
build_old_openssl_shim(false);
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue