list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
* --with-curl vs --with-curl-path=PATH
@ 2019-03-09 11:35 Jeffrey Walton
  0 siblings, 0 replies; only message in thread
From: Jeffrey Walton @ 2019-03-09 11:35 UTC (permalink / raw)
  To: Git List

I'm trying to build Git and install it in a discardable directory. All
of Git's prereqs have been built and are there.

Git was configured with --with-curl, but it looks like Git cannot find
the cURL built for it (see below). I tried adding -lcurl to LDLIBS but
it does not appear to be honored. cURL is also available from
PKG_CONFIG_PATH, but it does not appear it is being used:

$ PKG_CONFIG_PATH=/var/sanitize/lib64/pkgconfig pkg-config
--print-provides libcurl
libcurl = 7.64.0

My question is, how can I get the behavior of --with-curl-path=<custom
path>? At the moment the only option offered is --with-curl.

$ make V=1
make: curl-config: Command not found
gcc -I/var/sanitize/include -DNDEBUG -g2 -O2 -fsanitize=undefined
-march=native -fPIC -I. -DHAVE_SYSINFO -DGIT_HOST_CPU="\"x86_64\""
-DUSE_LIBPCRE2 -I/var/sanitize/include -DHAVE_ALLOCA_H
-I/var/sanitize/include -I/var/sanitize/include
-I/var/sanitize/include -I/var/sanitize/include -DSHA1_DC
-DPAGER_ENV='"LESS=FRX LV=-c"' -o git-http-fetch -L/var/sanitize/lib64
-fsanitize=undefined -Wl,-R,/var/sanitize/lib64 -Wl,--enable-new-dtags
 http.o http-walker.o http-fetch.o common-main.o \
        -L/var/sanitize/lib64 -Wl,-rpath,/var/sanitize/lib64  libgit.a
xdiff/lib.a  -lpcre2-8 -L/var/sanitize/lib64
-Wl,-rpath,/var/sanitize/lib64 -L/var/sanitize/lib64
-Wl,-rpath,/var/sanitize/lib64 -lz -L/var/sanitize/lib64
-Wl,-rpath,/var/sanitize/lib64 -liconv  -lcharset -lrt -lpthread
/bin/ld: http.o: in function `http_opt_request_remainder':
/home/test/git-2.21.0/http.c:1833: undefined reference to `curl_easy_setopt'
/bin/ld: http.o: in function `process_curl_messages':
/home/test/git-2.21.0/http.c:261: undefined reference to `curl_multi_info_read'

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-09 11:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-09 11:35 --with-curl vs --with-curl-path=PATH Jeffrey Walton list mirror (unofficial, one of many)

This inbox may be cloned and mirrored by anyone:

	git clone --mirror
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 git git/ \
	public-inbox-index git

Example config snippet for mirrors.
Newsgroups are available over NNTP:
 note: .onion URLs require Tor:

code repositories for project(s) associated with this inbox:

AGPL code for this site: git clone