|
|
|
@ -1,17 +1,17 @@
|
|
|
|
|
From 21a769a9d06dc811652d9c405be4f92a06807164 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From b20169c69e40a568c510e39b24ef5c844f81ce25 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From: Fabio Valentini <decathorpe@gmail.com>
|
|
|
|
|
Date: Fri, 9 Aug 2024 13:36:02 +0200
|
|
|
|
|
Date: Mon, 7 Oct 2024 21:24:01 +0200
|
|
|
|
|
Subject: [PATCH] unconditionally use pkg-config to link with system libcurl
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
build.rs | 589 +------------------------------------------------------
|
|
|
|
|
1 file changed, 5 insertions(+), 584 deletions(-)
|
|
|
|
|
build.rs | 599 +------------------------------------------------------
|
|
|
|
|
1 file changed, 5 insertions(+), 594 deletions(-)
|
|
|
|
|
|
|
|
|
|
diff --git a/build.rs b/build.rs
|
|
|
|
|
index 7d9a661..497789c 100644
|
|
|
|
|
index fa57dd9..497789c 100644
|
|
|
|
|
--- a/build.rs
|
|
|
|
|
+++ b/build.rs
|
|
|
|
|
@@ -1,613 +1,34 @@
|
|
|
|
|
@@ -1,623 +1,34 @@
|
|
|
|
|
-use std::env;
|
|
|
|
|
-use std::fs;
|
|
|
|
|
-use std::path::{Path, PathBuf};
|
|
|
|
@ -19,6 +19,14 @@ index 7d9a661..497789c 100644
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
- println!("cargo:rerun-if-changed=curl");
|
|
|
|
|
- println!(
|
|
|
|
|
- "cargo:rustc-check-cfg=cfg(\
|
|
|
|
|
- libcurl_vendored,\
|
|
|
|
|
- link_libnghttp2,\
|
|
|
|
|
- link_libz,\
|
|
|
|
|
- link_openssl,\
|
|
|
|
|
- )"
|
|
|
|
|
- );
|
|
|
|
|
- let target = env::var("TARGET").unwrap();
|
|
|
|
|
- let windows = target.contains("windows");
|
|
|
|
|
-
|
|
|
|
@ -114,7 +122,7 @@ index 7d9a661..497789c 100644
|
|
|
|
|
- .replace("@LIBCURL_LIBS@", "")
|
|
|
|
|
- .replace("@SUPPORT_FEATURES@", "")
|
|
|
|
|
- .replace("@SUPPORT_PROTOCOLS@", "")
|
|
|
|
|
- .replace("@CURLVERSION@", "8.9.0"),
|
|
|
|
|
- .replace("@CURLVERSION@", "8.10.1"),
|
|
|
|
|
- )
|
|
|
|
|
- .unwrap();
|
|
|
|
|
-
|
|
|
|
@ -136,6 +144,7 @@ index 7d9a661..497789c 100644
|
|
|
|
|
- .define("CURL_DISABLE_TFTP", None)
|
|
|
|
|
- .define("CURL_STATICLIB", None)
|
|
|
|
|
- .define("ENABLE_IPV6", None)
|
|
|
|
|
- .define("HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID", None)
|
|
|
|
|
- .define("HAVE_ASSERT_H", None)
|
|
|
|
|
- .define("OS", "\"unknown\"") // TODO
|
|
|
|
|
- .define("HAVE_ZLIB_H", None)
|
|
|
|
@ -296,6 +305,7 @@ index 7d9a661..497789c 100644
|
|
|
|
|
- // features, make sure we only compile one vtls.
|
|
|
|
|
- if cfg!(feature = "rustls") {
|
|
|
|
|
- cfg.define("USE_RUSTLS", None)
|
|
|
|
|
- .file("curl/lib/vtls/cipher_suite.c")
|
|
|
|
|
- .file("curl/lib/vtls/rustls.c")
|
|
|
|
|
- .include(env::var_os("DEP_RUSTLS_FFI_INCLUDE").unwrap());
|
|
|
|
|
- } else if cfg!(feature = "windows-static-ssl") {
|
|
|
|
@ -631,5 +641,5 @@ index 7d9a661..497789c 100644
|
|
|
|
|
- None
|
|
|
|
|
-}
|
|
|
|
|
--
|
|
|
|
|
2.46.0
|
|
|
|
|
2.46.2
|
|
|
|
|
|
|
|
|
|