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, 20:45 UTC
Message-ID
<xmqqlhupp4hx.fsf@gitster.dls.corp.google.com>
In-Reply-To
<1398714653-1050-1-git-send-email-dborowitz@google.com>
Dave Borowitz <dborowitz@google.com> writes:
Show 10 quoted lines
> The original implementation of CURL_CONFIG support did not match the
> original behavior of using -lcurl when CURLDIR was not set. This broke
> implementations that were lacking curl-config but did have libcurl
> installed along system libraries, such as MSysGit. In other words, the
> assumption that curl-config is always installed was incorrect.
>
> 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.
> ---
Sign-off?

I still think the implementation of "If CURL_CONFIG is unset" bit is a bit redundant, though.

Show 6 quoted lines
> +		CURL_CONFIG ?= curl-config
> +		ifeq "$(CURL_CONFIG)" ""
> +			CURL_LIBCURL =
> +		else
> +			CURL_LIBCURL := $(shell $(CURL_CONFIG) --libs)
> +		endif
Other than that, the remainder of the change looks correct to me.
Thanks.  
Previous: Junio C HamanoNext: Dave Borowitz
Message 9 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.