Fix a bad fix :)
This commit is contained in:
parent
5adb3f397a
commit
e11bfa6f0c
|
|
@ -42,6 +42,7 @@ fn build_old_openssl_shim(is_old: bool) {
|
||||||
let mut config: gcc::Config = Default::default();
|
let mut config: gcc::Config = Default::default();
|
||||||
if is_old {
|
if is_old {
|
||||||
config.definitions.push(("OLD_OPENSSL".to_string(), None));
|
config.definitions.push(("OLD_OPENSSL".to_string(), None));
|
||||||
|
}
|
||||||
|
|
||||||
gcc::compile_library("libold_openssl_shim.a",
|
gcc::compile_library("libold_openssl_shim.a",
|
||||||
&config,
|
&config,
|
||||||
|
|
@ -49,5 +50,4 @@ fn build_old_openssl_shim(is_old: bool) {
|
||||||
|
|
||||||
let out_dir = env::var_string("OUT_DIR").unwrap();
|
let out_dir = env::var_string("OUT_DIR").unwrap();
|
||||||
println!("cargo:rustc-flags=-L native={} -l old_openssl_shim:static", out_dir);
|
println!("cargo:rustc-flags=-L native={} -l old_openssl_shim:static", out_dir);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue