aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill <[email protected]>2015-02-12 13:05:46 +0900
committerWill <[email protected]>2015-02-12 13:05:46 +0900
commit5fdde8bda3a761c629ffca546f5f65feeda4509c (patch)
tree87a41e9a85a8fb063635fbb4c92790b326806ca9
parentMore test fixes (diff)
downloadrust-openssl-5fdde8bda3a761c629ffca546f5f65feeda4509c.tar.xz
rust-openssl-5fdde8bda3a761c629ffca546f5f65feeda4509c.zip
Fix build on *BSD
-rw-r--r--openssl-sys/build.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/openssl-sys/build.rs b/openssl-sys/build.rs
index a27f5e77..cfeab5ff 100644
--- a/openssl-sys/build.rs
+++ b/openssl-sys/build.rs
@@ -27,6 +27,13 @@ fn main() {
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() {
build_old_openssl_shim(false);
return;