fix: add build.rs to force linking system libgit2/libssh2
- SHA
e18d9ce09a2cab396dee92b17ba6500454223162- Parents
-
5c42838 - Tree
fcfb0d9
e18d9ce
e18d9ce09a2cab396dee92b17ba65004542231625c42838
fcfb0d9| Status | File | + | - |
|---|---|---|---|
| M |
Cargo.lock
|
1 | 1 |
| M |
Cargo.toml
|
1 | 1 |
| A |
build.rs
|
7 | 0 |
| M |
fussr.spec
|
1 | 1 |
Cargo.lockmodified@@ -285,7 +285,7 @@ dependencies = [ | ||
| 285 | 285 | |
| 286 | 286 | [[package]] |
| 287 | 287 | name = "fussr" |
| 288 | -version = "0.2.6" | |
| 288 | +version = "0.2.7" | |
| 289 | 289 | dependencies = [ |
| 290 | 290 | "anyhow", |
| 291 | 291 | "clap", |
Cargo.tomlmodified@@ -1,6 +1,6 @@ | ||
| 1 | 1 | [package] |
| 2 | 2 | name = "fussr" |
| 3 | -version = "0.2.6" | |
| 3 | +version = "0.2.7" | |
| 4 | 4 | edition = "2021" |
| 5 | 5 | description = "A git staging TUI tool - Rust port of fuss" |
| 6 | 6 | authors = ["Matthew Wolffe"] |
build.rsadded@@ -0,0 +1,7 @@ | ||
| 1 | +fn main() { | |
| 2 | + // Force linking to system libgit2 and libssh2 | |
| 3 | + // This ensures the linker includes these libraries even when | |
| 4 | + // libgit2-sys's build.rs has issues detecting them via pkg-config | |
| 5 | + println!("cargo:rustc-link-lib=git2"); | |
| 6 | + println!("cargo:rustc-link-lib=ssh2"); | |
| 7 | +} | |
fussr.specmodified@@ -1,5 +1,5 @@ | ||
| 1 | 1 | Name: fussr |
| 2 | -Version: 0.2.6 | |
| 2 | +Version: 0.2.7 | |
| 3 | 3 | Release: 1%{?dist} |
| 4 | 4 | Summary: A git staging TUI tool - Rust port of fuss |
| 5 | 5 | |