Go to file
Viktor Szakats e244d50064
configure: do not echo most inherited LDFLAGS to config files
`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 to 9f56bb608e #14681
Follow-up to 4c8adc8fee
Reported-by: Peter Marko
Fixes #15533
Closes #15550
2024-11-14 09:55:45 +01:00
.circleci ci: update dependency wolfSSL/wolfssh to v1.4.19 2024-11-04 08:44:33 +01:00
.github GHA/linux: fix pip3 install impacket breakage 2024-11-14 02:14:02 +01:00
CMake cmake: work around ios.toolchain.cmake breaking feature-detections 2024-11-13 10:42:38 +01:00
docs ECH: enable support for the AWS-LC backend 2024-11-08 13:59:39 +01:00
include RELEASE-NOTES: synced 2024-11-07 13:16:47 +01:00
lib build: use _fseeki64() on Windows, drop detections 2024-11-11 14:25:04 +01:00
LICENSES
m4 configure: do not echo most inherited LDFLAGS to config files 2024-11-14 09:55:45 +01:00
packages os400: Fix IBMi builds 2024-11-13 19:15:15 -05:00
plan9
projects misc: general C style cleanups 2024-08-22 23:43:45 +02:00
scripts cmakelint: fix to check root CMakeLists.txt 2024-11-13 12:45:06 +01:00
src curl: --test-duphandle in debug builds runs "duphandled" 2024-11-08 13:22:47 +01:00
tests configure: do not echo most inherited LDFLAGS to config files 2024-11-14 09:55:45 +01:00
winbuild winbuild: drop gen_resp_file.bat 2024-11-01 11:36:54 +01:00
.dir-locals.el
.git-blame-ignore-revs
.gitattributes winbuild: MS-DOS batch tidy-ups 2024-07-02 19:26:15 +02:00
.gitignore build: buildinfo.txt improvements 2024-09-19 15:56:30 +02:00
.mailmap mprintf: treat %o as unsigned, add tests for %o, %x, %X 2024-10-24 10:17:24 +02:00
acinclude.m4 cmake: use the BSD variable 2024-10-22 20:20:41 +02:00
appveyor.sh build: fix clang-cl builds, add CI job 2024-10-30 23:15:32 +01:00
appveyor.yml build: fix clang-cl builds, add CI job 2024-10-30 23:15:32 +01:00
buildconf
buildconf.bat buildconf.bat: remove outdated groff/nroff use 2024-03-07 22:38:16 +01:00
CHANGES.md CHANGES: rename to CHANGES.md, no longer generated 2024-08-01 13:37:12 +02:00
CMakeLists.txt configure: do not echo most inherited LDFLAGS to config files 2024-11-14 09:55:45 +01:00
configure.ac configure: do not echo most inherited LDFLAGS to config files 2024-11-14 09:55:45 +01:00
COPYING
curl-config.in configure: do not echo most inherited LDFLAGS to config files 2024-11-14 09:55:45 +01:00
Dockerfile Dockerfile: update Docker digest to d830561 2024-10-18 16:39:26 +02:00
GIT-INFO.md GIT-INFO.md: remove version requirements 2024-07-08 23:06:05 +02:00
libcurl.pc.in configure: do not echo most inherited LDFLAGS to config files 2024-11-14 09:55:45 +01:00
Makefile.am winbuild: drop gen_resp_file.bat 2024-11-01 11:36:54 +01:00
Makefile.dist Makefile.dist: fix ca-firefox target 2024-09-06 21:46:05 +02:00
README
README.md GHA: silence proselint warnings and an error 2024-10-15 16:44:17 +02:00
RELEASE-NOTES RELEASE-NOTES: synced 2024-11-08 23:24:50 +01:00
renovate.json GHA: drop "3" from openssl names and keys 2024-10-23 19:36:03 +02:00
REUSE.toml tests/server/util.c: remove use of strncpy 2024-10-10 07:47:01 +02:00
SECURITY.md docs: Clarify OpenSSF Best Practices vs Scorecard 2024-08-22 11:50:20 +02:00

curl logo

Curl is a command-line tool for transferring data specified with URL syntax. Learn how to use curl by reading the manpage or everything curl.

Find out how to install curl by reading the INSTALL document.

libcurl is the library curl is using to do its job. It is readily available to be used by your software. Read the libcurl manpage to learn how.

Open Source

curl is Open Source and is distributed under an MIT-like license.

Contact

Contact us on a suitable mailing list or use GitHub issues/ pull requests/ discussions.

All contributors to the project are listed in the THANKS document.

Commercial support

For commercial support, maybe private and dedicated help with your problems or applications using (lib)curl visit the support page.

Website

Visit the curl website for the latest news and downloads.

Source code

Download the latest source from the Git server:

git clone https://github.com/curl/curl.git

Security problems

Report suspected security problems via our HackerOne page and not in public.

Notice

Curl contains pieces of source code that is Copyright (c) 1998, 1999 Kungliga Tekniska Högskolan. This notice is included here to comply with the distribution terms.

Backers

Thank you to all our backers 🙏 Become a backer.

Sponsors

Support this project by becoming a sponsor.