libcurl.pc: add Requires.private, Requires for static linking

- cmake: populate for dependencies.
- autotools: populate for dependencies.
  (including mbedtls, though the script does not detect
  mbedtls through pkgconfig. mbedtls 3.6.0 now supports it.)

Skip dealing with gssapi in this patch.

Fixes #864
Closes #13911
This commit is contained in:
Viktor Szakats 2024-06-08 00:41:24 +02:00
parent 1dec702c86
commit f057de5a1a
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
10 changed files with 68 additions and 11 deletions

View file

@ -22,9 +22,6 @@
#
###########################################################################
# This should most probably benefit from getting a "Requires:" field added
# dynamically by configure.
#
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
@ -36,6 +33,8 @@ Name: libcurl
URL: https://curl.se/
Description: Library to transfer files with ftp, http, etc.
Version: @CURLVERSION@
Requires: @LIBCURL_PC_REQUIRES@
Requires.private: @LIBCURL_PC_REQUIRES_PRIVATE@
Libs: -L${libdir} -lcurl @LIBCURL_NO_SHARED@
Libs.private: @LIBCURL_LIBS@
Cflags: -I${includedir} @CPPFLAG_CURL_STATICLIB@