From 74faf8a12c2746be83f7c2123e78b9963596154a Mon Sep 17 00:00:00 2001 From: Umang Raghuvanshi Date: Mon, 15 Nov 2021 18:40:49 +0100 Subject: [PATCH] libsqlite3-sys: darwin: fix crypto link framework SecurityFoundation.framework is an unrelated macOS framework which does not directly provide cryptography functions. This framework also doesn't exist on iOS, which breaks linking This commit changes to link against Security.framework instead, as noted in the SQLCipher docs [1]. [1] https://www.zetetic.net/blog/2013/6/27/sqlcipher-220-release.html --- libsqlite3-sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsqlite3-sys/build.rs b/libsqlite3-sys/build.rs index addc77d..2392c3d 100644 --- a/libsqlite3-sys/build.rs +++ b/libsqlite3-sys/build.rs @@ -192,7 +192,7 @@ mod build_bundled { println!("cargo:rustc-link-search={}", lib_dir.to_string_lossy()); } else if is_apple { cfg.flag("-DSQLCIPHER_CRYPTO_CC"); - println!("cargo:rustc-link-lib=framework=SecurityFoundation"); + println!("cargo:rustc-link-lib=framework=Security"); println!("cargo:rustc-link-lib=framework=CoreFoundation"); } else { // branch not taken on Windows, just `crypto` is fine.