{"thread":{"id":"50701","subject":"--with-curl vs --with-curl-path=PATH","startedAt":"2019-03-09T11:40:17Z","lastAt":"2019-03-09T11:40:17Z","messageCount":1,"participants":["Jeffrey Walton"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"371022","messageId":"CAH8yC8nMe-LmmS+KvBDATWu-C-FZef2PbT1FpHECGb_paeyYMA@mail.gmail.com","threadId":"50701","inReplyTo":null,"subject":"--with-curl vs --with-curl-path=PATH","fromName":"Jeffrey Walton","fromEmail":"noloader@gmail.com","sentAt":"2019-03-09T11:35:58Z","receivedAt":"2019-03-09T11:40:17Z","isPatch":false,"sender":{"key":"noloader@gmail.com","avatar":null},"body":"I'm trying to build Git and install it in a discardable directory. All\nof Git's prereqs have been built and are there.\n\nGit was configured with --with-curl, but it looks like Git cannot find\nthe cURL built for it (see below). I tried adding -lcurl to LDLIBS but\nit does not appear to be honored. cURL is also available from\nPKG_CONFIG_PATH, but it does not appear it is being used:\n\n$ PKG_CONFIG_PATH=/var/sanitize/lib64/pkgconfig pkg-config\n--print-provides libcurl\nlibcurl = 7.64.0\n\nMy question is, how can I get the behavior of --with-curl-path=<custom\npath>? At the moment the only option offered is --with-curl.\n\n$ make V=1\n...\nmake: curl-config: Command not found\n...\ngcc -I/var/sanitize/include -DNDEBUG -g2 -O2 -fsanitize=undefined\n-march=native -fPIC -I. -DHAVE_SYSINFO -DGIT_HOST_CPU=\"\\\"x86_64\\\"\"\n-DUSE_LIBPCRE2 -I/var/sanitize/include -DHAVE_ALLOCA_H\n-I/var/sanitize/include -I/var/sanitize/include\n-I/var/sanitize/include -I/var/sanitize/include -DSHA1_DC\n-DSHA1DC_NO_STANDARD_INCLUDES -DSHA1DC_INIT_SAFE_HASH_DEFAULT=0\n-DSHA1DC_CUSTOM_INCLUDE_SHA1_C=\"\\\"cache.h\\\"\"\n-DSHA1DC_CUSTOM_INCLUDE_UBC_CHECK_C=\"\\\"git-compat-util.h\\\"\"\n-DSHA256_BLK  -DHAVE_PATHS_H -DHAVE_LIBCHARSET_H -DHAVE_STRINGS_H\n-DHAVE_DEV_TTY -DHAVE_CLOCK_GETTIME -DHAVE_CLOCK_MONOTONIC\n-DHAVE_GETDELIM '-DPROCFS_EXECUTABLE_PATH=\"/proc/self/exe\"'\n-DFREAD_READS_DIRECTORIES -DNO_STRLCPY -DSHELL_PATH='\"/bin/sh\"'\n-DPAGER_ENV='\"LESS=FRX LV=-c\"' -o git-http-fetch -L/var/sanitize/lib64\n-fsanitize=undefined -Wl,-R,/var/sanitize/lib64 -Wl,--enable-new-dtags\n http.o http-walker.o http-fetch.o common-main.o \\\n        -L/var/sanitize/lib64 -Wl,-rpath,/var/sanitize/lib64  libgit.a\nxdiff/lib.a  -lpcre2-8 -L/var/sanitize/lib64\n-Wl,-rpath,/var/sanitize/lib64 -L/var/sanitize/lib64\n-Wl,-rpath,/var/sanitize/lib64 -lz -L/var/sanitize/lib64\n-Wl,-rpath,/var/sanitize/lib64 -liconv  -lcharset -lrt -lpthread\n/bin/ld: http.o: in function `http_opt_request_remainder':\n/home/test/git-2.21.0/http.c:1833: undefined reference to `curl_easy_setopt'\n/bin/ld: http.o: in function `process_curl_messages':\n/home/test/git-2.21.0/http.c:261: undefined reference to `curl_multi_info_read'\n...\n"}]}