summaryrefslogtreecommitdiff
path: root/libssh2-sys
diff options
context:
space:
mode:
Diffstat (limited to 'libssh2-sys')
-rw-r--r--libssh2-sys/build.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/libssh2-sys/build.rs b/libssh2-sys/build.rs
index 0b0a704..d6d2344 100644
--- a/libssh2-sys/build.rs
+++ b/libssh2-sys/build.rs
@@ -25,6 +25,14 @@ fn main() {
cflags.push_str(" -fPIC");
}
+ match os::getenv("DEP_OPENSSL_ROOT") {
+ Some(s) => {
+ cflags.push_str(format!(" -I{}/include", s).as_slice());
+ cflags.push_str(format!(" -L{}/lib", s).as_slice());
+ }
+ None => {}
+ }
+
let src = Path::new(os::getenv("CARGO_MANIFEST_DIR").unwrap());
let dst = Path::new(os::getenv("OUT_DIR").unwrap());