mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
e244d50064
`libcurl.pc` `Libs.private` (since 8.11.0, and in `Libs` before 7.20.0) and `curl-config` `--static-libs` (since 7.17.1, and in `Libs` between 7.7.2-7.25.0). This included all flags inherited from the environment, in addition to those coming from dependency detections. To avoid spilling all linker flags inherited from the environment to the libcurl config files, this patch omits them all, except `-L`, `-F`, `--library-path=` and `-framework` options, which are still passed. The rationale for the exceptions is that `LIBS` is passed as-is, and `LDFLAGS`, `LIBS` are the canonical way to pass custom libs options to a build. `LIBS` may not work without a matching custom libpath. This brings autotools behaviour closer to cmake, and `curl-config` closer to `libcurl.pc`. Follow-up to9f56bb608e
#14681 Follow-up to4c8adc8fee
Reported-by: Peter Marko Fixes #15533 Closes #15550
42 lines
1.5 KiB
PkgConfig
42 lines
1.5 KiB
PkgConfig
#***************************************************************************
|
|
# _ _ ____ _
|
|
# Project ___| | | | _ \| |
|
|
# / __| | | | |_) | |
|
|
# | (__| |_| | _ <| |___
|
|
# \___|\___/|_| \_\_____|
|
|
#
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
#
|
|
# This software is licensed as described in the file COPYING, which
|
|
# you should have received as part of this distribution. The terms
|
|
# are also available at https://curl.se/docs/copyright.html.
|
|
#
|
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
# copies of the Software, and permit persons to whom the Software is
|
|
# furnished to do so, under the terms of the COPYING file.
|
|
#
|
|
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
# KIND, either express or implied.
|
|
#
|
|
# SPDX-License-Identifier: curl
|
|
#
|
|
###########################################################################
|
|
|
|
prefix=@prefix@
|
|
exec_prefix=@exec_prefix@
|
|
libdir=@libdir@
|
|
includedir=@includedir@
|
|
supported_protocols="@SUPPORT_PROTOCOLS@"
|
|
supported_features="@SUPPORT_FEATURES@"
|
|
|
|
Name: libcurl
|
|
URL: https://curl.se/
|
|
Description: Library to transfer files with HTTP, FTP, etc.
|
|
Version: @CURLVERSION@
|
|
Requires: @LIBCURL_PC_REQUIRES@
|
|
Requires.private: @LIBCURL_PC_REQUIRES_PRIVATE@
|
|
Libs: -L${libdir} -lcurl @LIBCURL_PC_LIBS@
|
|
Libs.private: @LIBCURL_PC_LDFLAGS_PRIVATE@ @LIBCURL_PC_LIBS_PRIVATE@
|
|
Cflags: -I${includedir} @LIBCURL_PC_CFLAGS@
|
|
Cflags.private: @LIBCURL_PC_CFLAGS_PRIVATE@
|