aboutsummaryrefslogtreecommitdiff
path: root/systest
diff options
context:
space:
mode:
authorSteven Fackler <[email protected]>2016-10-14 19:16:08 -0700
committerSteven Fackler <[email protected]>2016-10-14 19:16:08 -0700
commitd7a433bdef4bd232c00cddff1a18569b23903ba4 (patch)
tree6103a6dc033fac707b061831599b7ee41a89bdc4 /systest
parentMerge pull request #469 from sfackler/hostname (diff)
downloadarchived-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.rs5
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")