Try to dlopen curl-gnutls

Origin: other
Forwarded: no
Last-Update: 2016-08-19

Since we link with gnutls, try to dlopen curl-gnutls (in addition to the
OpenSSL variant).

Gbp-Pq: Name 15_try_curl-gnutls.diff
This commit is contained in:
Andreas Metzler 2022-09-15 10:48:29 +08:00 committed by luoyaoming
parent df35dcb267
commit 50141e2b8d
1 changed files with 3 additions and 0 deletions

View File

@ -282,6 +282,9 @@ _c_init(void)
if (!_c->mod)
ERR("Could not find libcurl.5.dylib, libcurl.4.dylib, libcurl.so.5, libcurl.so.4");
#else
# ifdef HAVE_GNUTLS
LOAD("libcurl-gnutls.so.4"); // try this one first
# endif /* ifdef HAVE_GNUTLS */
LOAD("libcurl.so.5"); // try only
LOAD("libcurl.so.4"); // try only
if (!_c->mod)