mirror of
https://github.com/redstrate/Kawari.git
synced 2025-04-22 07:27:44 +00:00

While you can just drop the Oodle static library into /usr, I'm not a big fan of doing it, especially when the binary didn't come from my machine or package manager. You can set a RUSTFLAGS environment variable or cargo config file to specify a link path, but having the build script search there for you is easier. The docs now specify which variant of Oodle is required, since there are multiple. It also specifically mentions the static library, because I had some weird issues leaving the dynamic library in that folder, where the executables wouldn't start unless it could dynamically load the .so.
3 lines
63 B
Rust
3 lines
63 B
Rust
fn main() {
|
|
println!("cargo:rustc-link-search=./oodle");
|
|
}
|