diff options
| author | Richard Diamond <[email protected]> | 2015-04-18 23:03:11 -0500 |
|---|---|---|
| committer | Richard Diamond <[email protected]> | 2015-04-18 23:03:11 -0500 |
| commit | c55d410829364d98c42e97e23304a119b3d053ac (patch) | |
| tree | 6acc03a6912a6cfe559378f0d14b2d84ed1a89f6 /openssl-sys/build.rs | |
| parent | Merge pull request #199 from CarlColglazier/patch-1 (diff) | |
| download | rust-openssl-c55d410829364d98c42e97e23304a119b3d053ac.tar.xz rust-openssl-c55d410829364d98c42e97e23304a119b3d053ac.zip | |
Fixes for Native Client.
Diffstat (limited to 'openssl-sys/build.rs')
| -rw-r--r-- | openssl-sys/build.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/openssl-sys/build.rs b/openssl-sys/build.rs index e0d88309..aadaa361 100644 --- a/openssl-sys/build.rs +++ b/openssl-sys/build.rs @@ -5,6 +5,11 @@ use std::env; use std::path::PathBuf; fn main() { + let target = env::var("TARGET").unwrap(); + + // libressl_pnacl_sys links the libs needed. + if target.ends_with("nacl") { return; } + let lib_dir = env::var("OPENSSL_LIB_DIR").ok(); let include_dir = env::var("OPENSSL_INCLUDE_DIR").ok(); @@ -15,7 +20,7 @@ fn main() { } } - let (libcrypto, libssl) = if env::var("TARGET").unwrap().contains("windows") { + let (libcrypto, libssl) = if target.contains("windows") { ("eay32", "ssl32") } else { ("crypto", "ssl") |