mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-22 16:29:20 +08:00
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
This commit is contained in:
parent
5d42ba7c29
commit
74faf8a12c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user