]> git.ipfire.org Git - thirdparty/git.git/commit - configure.ac
build: link with curl-defined linker flags
authorJames Knight <james.d.knight@live.com>
Sat, 3 Nov 2018 05:12:11 +0000 (05:12 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Nov 2018 01:19:25 +0000 (10:19 +0900)
commit23c4bbe28e61974577164db09cbd1d1c7e568ca4
tree9669d56595c17501d83735e1b9043c88b12e7053
parentd582ea202b626dcc6c3b01e1e11a296d9badd730
build: link with curl-defined linker flags

Adjusting the build process to rely more on curl-config to populate
linker flags instead of manually populating flags based off detected
features.

Originally, a configure-invoked build would check for SSL-support in the
target curl library. If enabled, NEEDS_SSL_WITH_CURL would be set and
used in the Makefile to append additional libraries to link against. As
for systems building solely with make, the defines NEEDS_IDN_WITH_CURL
and NEEDS_SSL_WITH_CURL could be set to indirectly enable respective
linker flags. Since both configure.ac and Makefile already rely on
curl-config utility to provide curl-related build information, adjusting
the respective assets to populate required linker flags using the
utility (unless explicitly configured).

Signed-off-by: James Knight <james.d.knight@live.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
config.mak.uname
configure.ac