From 91f8c542f75ff81ce7f3f12f26c469127ff0ab18 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Wed, 9 Dec 2015 23:30:29 -0800 Subject: Replace SslStream implementation! --- openssl/build.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 openssl/build.rs (limited to 'openssl/build.rs') diff --git a/openssl/build.rs b/openssl/build.rs new file mode 100644 index 00000000..640b024c --- /dev/null +++ b/openssl/build.rs @@ -0,0 +1,16 @@ +extern crate gcc; + +use std::env; +use std::path::PathBuf; + +fn main() { + let mut config = gcc::Config::new(); + + if let Some(paths) = env::var_os("DEP_OPENSSL_INCLUDE") { + for path in env::split_paths(&paths) { + config.include(PathBuf::from(path)); + } + } + + config.file("src/c_helpers.c").compile("libc_helpers.a"); +} -- cgit v1.2.3