From cd017730617ea04b5a4b0a3f588ce1bb65258a23 Mon Sep 17 00:00:00 2001 From: Claudio Carvalho Date: Mon, 26 Jun 2023 08:54:09 -0500 Subject: [PATCH] build: Link the system libcrypto to the SVSM binary Ideally we should be testing the libcrypto we built. This links the system libcrypto as a temporary solution. Signed-off-by: Claudio Carvalho --- build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.rs b/build.rs index 48e0f87..da45c41 100644 --- a/build.rs +++ b/build.rs @@ -40,4 +40,6 @@ fn main() { bindings .write_to_file(PathBuf::from(out_dir).join("bindings.rs")) .expect("ERR: Couldn't write bindings!"); + + println!("cargo:rustc-link-lib=crypto"); }