On Thu, 12 Sep 2024, Paul Smith via curl-library wrote:
As I understand the Libs: variable is shown if you run pkg-config with
--libs, and BOTH Libs: and Libs.private: are shown if you run pkg-config
with --libs --static.
If you say so.
I think our pc file (and most other .pc files?) suffers from the fact that
pkg-config was never properly defined and documented so we have as many others
mostly copied behavior from how we have understood others do it.
At least that's how the .pc file was once created and it might also since then
have suffered from not having gotten much attention from someone who knows
about pkg-config specifics.
The libcurl.pc file seems strange to me because the libraries are all
repeated in Libs.private (and also the prerequisites are duplicated in
Requires.private):
Requires: zlib,libzstd,openssl
Requires.private: zlib,libzstd,openssl
Right, if the private one works *in combination* with the other than there
really is no point in repeating.
Is this something to be considered? Or "don't really care"?
We always want improvemenents! If you have specific proposals of how we should
improve, we'll love to hear about it. PRs are always welcome.
Looking at the .pc.in file I didn't quite follow the uses of the
LIBCURL_NO_SHARED and LIBCURL_LIBS metavariables.
I believe they were renamed recently.
--
/ daniel.haxx.se
| Commercial curl support up to 24x7 is available!
| Private help, bug fixes, support, ports, new features
| https://curl.se/support.html
--
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html