Hello! I have a program that requires libssl.so.1.1 and libcrypto.so.1.1 and can't seem to get it to correctly link against the main binary. My current build.rs file looks like:
fn main() {
#[cfg(feature="static")]
{
println!("cargo:rustc-link-search=native=/project/
println!("cargo:rustc-link-lib=static=libcrypto.a");
println!("cargo:rustc-link-lib=static=libssl.a");
}
}
I've tried loading from the default /usr/lib/ paths, and changing the link search path, changed from static to dylib, changing the names of the libraries (libssl instead of libssl.so.1.1) etc etc.
Any help on why this is happening and how to get ldd to work correctly would be awesome. Thanks in advance!