-L/usr/local/Cellar/curl/7.78.0/lib -lcurl

I have done this. In fact I specifically used the full path to libcurl.a to 
avoid picking up the macOS version.

Intuitively, these extra dependencies seems wrong. If I build a static version 
of a lib, it should not depend on a shared lib.

________________________________
From: Daniel Stenberg <dan...@haxx.se>
Sent: Thursday, 19 August 2021 9:19 AM
To: Anmol Mishra via curl-library <curl-library@cool.haxx.se>
Cc: Anmol Mishra <amish...@hotmail.com>
Subject: Re: libcurl.a linker errors on XCode

On Thu, 19 Aug 2021, Anmol Mishra via curl-library wrote:

> That makes sense. Is there a list of dependencies somewhere ?

It depends entirely on your specific build.

"sh curl-config --libs" should list them after a build.

--

  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to