update curl-sys
Ximin Luo
4 years ago
|
0 |
rust-curl-sys (0.4.30-2) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
|
|
1 |
|
|
2 |
* Package curl-sys 0.4.30+curl-7.69.1 from crates.io using debcargo 2.4.2
|
|
3 |
* Fix static linking for autopkgtests.
|
|
4 |
|
|
5 |
-- Ximin Luo <infinity0@debian.org> Tue, 21 Apr 2020 21:09:04 +0100
|
|
6 |
|
0 | 7 |
rust-curl-sys (0.4.30-1) unstable; urgency=medium
|
1 | 8 |
|
2 | 9 |
* Package curl-sys 0.4.30+curl-7.69.1 from crates.io using debcargo 2.4.2
|
0 | 0 |
--- a/Cargo.toml
|
1 | 1 |
+++ b/Cargo.toml
|
2 | |
@@ -47,7 +47,7 @@
|
|
2 |
@@ -49,7 +49,7 @@
|
3 | 3 |
spnego = []
|
4 | 4 |
ssl = ["openssl-sys"]
|
5 | 5 |
static-curl = []
|
|
8 | 8 |
[target."cfg(all(unix, not(target_os = \"macos\")))".dependencies.openssl-sys]
|
9 | 9 |
version = "0.9"
|
10 | 10 |
optional = true
|
|
11 |
--- a/build.rs
|
|
12 |
+++ b/build.rs
|
|
13 |
@@ -19,8 +19,9 @@
|
|
14 |
return println!("cargo:rustc-flags=-l curl");
|
|
15 |
}
|
|
16 |
|
|
17 |
- // If the static-curl feature is disabled, probe for a system-wide libcurl.
|
|
18 |
- if !cfg!(feature = "static-curl") {
|
|
19 |
+ // On Debian, always probe for a system-wide libcurl even when linking statically
|
|
20 |
+ if true {
|
|
21 |
+ if cfg!(feature = "static-curl") { println!("cargo:static=1"); }
|
|
22 |
// OSX and Haiku ships libcurl by default, so we just use that version
|
|
23 |
// so long as it has the right features enabled.
|
|
24 |
if target.contains("apple") || target.contains("haiku") {
|