git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Makefile: default to -lcurl when no CURL_CONFIG or CURLDIR

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 28, 2014, 21:04 UTC
Message-ID
<xmqqtx9dnp23.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CAD0k6qR766hrgUtyiGzZ9KM5woknfsyUm3Mf1-Pm3M-LrL2Zhg@mail.gmail.com>
Dave Borowitz <dborowitz@google.com> writes:
Show 13 quoted lines
> On Mon, Apr 28, 2014 at 1:05 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
>> Dave Borowitz wrote:
>>
>>> Instead, if CURL_CONFIG is empty or returns an empty result (e.g. due
>>> to curl-config being missing), use the old behavior of falling back to
>>> -lcurl.
>>> ---
>>>  Makefile | 36 +++++++++++++++++++++++++-----------
>>>  1 file changed, 25 insertions(+), 11 deletions(-)
>>
>> Sign-off?
>
> Oops.
Will forge your sign-off while queuing ;-)
Show 6 quoted lines
>
> How about:
> "If CURL_CONFIG is unset or points to a binary that is not found,
> defaults to the CURLDIR behavior. If CURLDIR is not set, this means
> using -lcurl with no additional library detection (other than
> NEEDS_*_WITH_CURL).
... with this rephrasing.
Show 6 quoted lines
>>> -                             $(error libcurl not detected; try setting CURLDIR)
>>> +                                $(error libcurl not detected or not compiled with static support)
>>
>> Whitespace damage.
>
> Yes, but intentional, because Makefile parsing is weird.
Thanks.
Previous: Junio C HamanoNext: Junio C Hamano
Message 8 of 10 in “Makefile: default to -lcurl when no CURL_CONFIG or CURLDIR”
  1. Makefile: default to -lcurl when no CURL_CONFIG or CURLDIRDave Borowitz, Apr 28, 2014
  2. Jonathan NiederApr 28, 2014
  3. Dave BorowitzApr 28, 2014
  4. Dave BorowitzApr 28, 2014
  5. Jonathan NiederApr 28, 2014
  6. Dave BorowitzApr 28, 2014
  7. Junio C HamanoApr 28, 2014
  8. Junio C HamanoApr 28, 2014
  9. Junio C HamanoApr 28, 2014
  10. Dave BorowitzApr 28, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.