From 40df596107ac278ac93470dc64abe636b55b7ef2 Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Wed, 26 Jul 2023 17:59:39 -0400 Subject: [PATCH 1/2] Don't eagerly initialize `libcurl` This initialization will be done by an `on_load_hook` within `libcurl_jll`. --- src/Curl/Curl.jl | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Curl/Curl.jl b/src/Curl/Curl.jl index 3fc9310..d4d9dbf 100644 --- a/src/Curl/Curl.jl +++ b/src/Curl/Curl.jl @@ -66,7 +66,6 @@ using Base: OS_HANDLE, preserve_handle, unpreserve_handle include("utils.jl") function __init__() - @check curl_global_init(CURL_GLOBAL_ALL) end const CURL_VERSION_INFO = unsafe_load(curl_version_info(CURLVERSION_NOW)) From 421a7442cfcb005f18b7daac6410bae609d8d4a3 Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Thu, 27 Jul 2023 11:37:58 -0400 Subject: [PATCH 2/2] Remove `__init__()` function completely. --- src/Curl/Curl.jl | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Curl/Curl.jl b/src/Curl/Curl.jl index d4d9dbf..c165226 100644 --- a/src/Curl/Curl.jl +++ b/src/Curl/Curl.jl @@ -65,9 +65,6 @@ using Base: OS_HANDLE, preserve_handle, unpreserve_handle include("utils.jl") -function __init__() -end - const CURL_VERSION_INFO = unsafe_load(curl_version_info(CURLVERSION_NOW)) if CURL_VERSION_INFO.ssl_version == Base.C_NULL const SSL_VERSION = ""