blob: 8c37dda4b1e57fc30caa78b2c3cf7eebc75b57b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -61,7 +61,7 @@
spnego = []
ssl = ["openssl-sys"]
static-curl = []
-static-ssl = ["openssl-sys/vendored"]
+static-ssl = ["openssl-sys"]
upkeep_7_62_0 = []
windows-static-ssl = []
zlib-ng-compat = [
--- a/build.rs
+++ b/build.rs
@@ -18,8 +18,9 @@
return println!("cargo:rustc-flags=-l curl");
}
- // If the static-curl feature is disabled, probe for a system-wide libcurl.
- if !cfg!(feature = "static-curl") {
+ // On Debian, always probe for a system-wide libcurl even when linking statically
+ if true {
+ if cfg!(feature = "static-curl") { println!("cargo:static=1"); }
// OSX ships libcurl by default, so we just use that version
// so long as it has the right features enabled.
if target.contains("apple") && (!cfg!(feature = "http2") || curl_config_reports_http2()) {
|