diff --git a/psa-crypto-sys/build.rs b/psa-crypto-sys/build.rs index 6eb2a4b..fdcc60c 100644 --- a/psa-crypto-sys/build.rs +++ b/psa-crypto-sys/build.rs @@ -308,6 +308,10 @@ mod operations { let mut mbed_lib_dir = compile_mbed_crypto()?; let mut mbed_include_dir = mbed_lib_dir.clone(); mbed_lib_dir.push("lib"); + if !mbed_lib_dir.as_path().exists() { + _ = mbed_lib_dir.pop(); + mbed_lib_dir.push("lib64"); + } mbed_include_dir.push("include"); lib = mbed_lib_dir.to_str().unwrap().to_owned(); @@ -357,6 +361,11 @@ mod operations { let mut mbed_lib_dir = compile_mbed_crypto()?; let mut mbed_include_dir = mbed_lib_dir.clone(); mbed_lib_dir.push("lib"); + if !mbed_lib_dir.as_path().exists() { + _ = mbed_lib_dir.pop(); + mbed_lib_dir.push("lib64"); + } + mbed_include_dir.push("include"); let main_lib = mbed_lib_dir.join("libmbedcrypto.a"); @@ -388,6 +397,7 @@ mod operations { let (from, _) = &lib; args.push(from.as_os_str()); } + let output = std::process::Command::new("nm") .args(args) .output() diff --git a/psa-crypto-sys/vendor b/psa-crypto-sys/vendor index 8df2f8e..edb8fec 160000 --- a/psa-crypto-sys/vendor +++ b/psa-crypto-sys/vendor @@ -1 +1 @@ -Subproject commit 8df2f8e7b9c7bb9390ac74bb7bace27edca81a2b +Subproject commit edb8fec9882084344a314368ac7fd957a187519c