diff --git a/systest/build.rs b/systest/build.rs index 38d43995..81907a57 100644 --- a/systest/build.rs +++ b/systest/build.rs @@ -22,16 +22,8 @@ fn main() { } } - if env::var("DEP_OPENSSL_IS_101").is_ok() { - cfg.cfg("ossl101", None); - } - if env::var("DEP_OPENSSL_IS_102").is_ok() { - cfg.cfg("ossl102", None); - } - if env::var("DEP_OPENSSL_IS_110").is_ok() { - cfg.cfg("ossl110", None); - } - if let Ok(vars) = env::var("DEP_OPENSSL_OSSLCONF") { + cfg.cfg(&format!("ossl{}", env::var("DEP_OPENSSL_VERSION").unwrap()), None); + if let Ok(vars) = env::var("DEP_OPENSSL_CONF") { for var in vars.split(",") { cfg.cfg("osslconf", Some(var)); }