]> git.ipfire.org Git - thirdparty/curl.git/commit
configure: trust pkg-config when it's used for zlib
authorDan Fandrich <dan@coneharvesters.com>
Thu, 31 Aug 2023 23:06:02 +0000 (16:06 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Fri, 1 Sep 2023 22:08:39 +0000 (15:08 -0700)
commita20fbb0348239b74e77ca2af9bf7c976b20aeafc
treed32b388699e66f948d2aefe0e931a79552d7936a
parent280f90061ab153a9822dea64f6e8f8e6f7a57c38
configure: trust pkg-config when it's used for zlib

The library flags retrieved from pkg-config were later thrown out and
harded-coded, which negates the whole reason to use pkg-config.
Also, previously, the assumption was made that --libs-only-l and
--libs-only-L are the full decomposition of --libs, which is untrue and
would not allow linking against a static zlib. The new approach is
better in that it uses --libs, although only if --libs-only-l returns
nothing.

Bug: https://curl.se/mail/lib-2023-08/0081.html
Reported-by: Randall
Closes #11778
configure.ac