v0.2.13: add zlib to link args for CachyOS/Arch compatibility
- SHA
7c88add4e00641e922458120274ee815174d3d43- Parents
-
5001b86 - Tree
5e51260
7c88add
7c88add4e00641e922458120274ee815174d3d435001b86
5e51260| Status | File | + | - |
|---|---|---|---|
| M |
Cargo.lock
|
1 | 1 |
| M |
Cargo.toml
|
1 | 1 |
| M |
build.rs
|
3 | 1 |
Cargo.lockmodified@@ -285,7 +285,7 @@ dependencies = [ | |||
| 285 | 285 | ||
| 286 | [[package]] | 286 | [[package]] |
| 287 | name = "fussr" | 287 | name = "fussr" |
| 288 | -version = "0.2.10" | 288 | +version = "0.2.12" |
| 289 | dependencies = [ | 289 | dependencies = [ |
| 290 | "anyhow", | 290 | "anyhow", |
| 291 | "clap", | 291 | "clap", |
Cargo.tomlmodified@@ -1,6 +1,6 @@ | |||
| 1 | [package] | 1 | [package] |
| 2 | name = "fussr" | 2 | name = "fussr" |
| 3 | -version = "0.2.12" | 3 | +version = "0.2.13" |
| 4 | edition = "2021" | 4 | edition = "2021" |
| 5 | description = "A git staging TUI tool - Rust port of fuss" | 5 | description = "A git staging TUI tool - Rust port of fuss" |
| 6 | authors = ["Matthew Wolffe"] | 6 | authors = ["Matthew Wolffe"] |
build.rsmodified@@ -1,7 +1,9 @@ | |||
| 1 | fn main() { | 1 | fn main() { |
| 2 | - // Explicitly link against libgit2 and libssh2 | 2 | + // Explicitly link against libgit2, libssh2, and their dependencies |
| 3 | // Use link-arg to append to the END of the linker command line | 3 | // Use link-arg to append to the END of the linker command line |
| 4 | // This ensures the libraries come AFTER the Rust code that needs them | 4 | // This ensures the libraries come AFTER the Rust code that needs them |
| 5 | + // Order matters: libgit2 depends on libssh2, both depend on zlib | ||
| 5 | println!("cargo:rustc-link-arg=-lgit2"); | 6 | println!("cargo:rustc-link-arg=-lgit2"); |
| 6 | println!("cargo:rustc-link-arg=-lssh2"); | 7 | println!("cargo:rustc-link-arg=-lssh2"); |
| 8 | + println!("cargo:rustc-link-arg=-lz"); | ||
| 7 | } | 9 | } |