diff options
| author | Steven Fackler <[email protected]> | 2016-10-14 19:16:08 -0700 |
|---|---|---|
| committer | Steven Fackler <[email protected]> | 2016-10-14 19:16:08 -0700 |
| commit | d7a433bdef4bd232c00cddff1a18569b23903ba4 (patch) | |
| tree | 6103a6dc033fac707b061831599b7ee41a89bdc4 /systest | |
| parent | Merge pull request #469 from sfackler/hostname (diff) | |
| download | archived-rust-openssl-d7a433bdef4bd232c00cddff1a18569b23903ba4.tar.xz archived-rust-openssl-d7a433bdef4bd232c00cddff1a18569b23903ba4.zip | |
Respect osslconf in systest
Also cfg off SSLv3_method, since it's disabled in the OpenSSL that ships
with Arch Linux. More such flags can be added on demand - it doesn't
seem worth auditing everything for them.
Diffstat (limited to 'systest')
| -rw-r--r-- | systest/build.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/systest/build.rs b/systest/build.rs index b2820e5b..94c5534e 100644 --- a/systest/build.rs +++ b/systest/build.rs @@ -31,6 +31,11 @@ fn main() { if env::var("DEP_OPENSSL_IS_110").is_ok() { cfg.cfg("ossl110", None); } + if let Ok(vars) = env::var("DEP_OPENSSL_OSSLCONF") { + for var in vars.split(",") { + cfg.cfg("osslconf", Some(var)); + } + } cfg.header("openssl/comp.h") .header("openssl/dh.h") |