mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
9f009fe1e0
When built as a static library, sqlite (or sqlcipher) doesn't carry additional link dependencies with it, and the libsqlite3-sys rlib doesn't pick them up either. A dependent crate attempting to link against rusqlite then has to specify these additional link commands, and even then they need to be specified before the libsqlite3-sys rlib is specified on the command line. Fix this by attempting to use pkg-config when the (SQLITE3|SQLCIPHER)_LIB_DIR is specified, since these builds produce the pkg-config link dependency information, and the pkg_config crate can automatically generate the correct link commands using that. (Additionally, since (SQLITE3|SQLCIPHER)_STATIC is already defined, or not, the --static flag will be correctly configured for pkg_config) |
||
---|---|---|
.. | ||
bindgen-bindings | ||
sqlite3 | ||
src | ||
.gitignore | ||
build.rs | ||
Cargo.toml | ||
upgrade.sh | ||
wrapper.h |