curl/m4
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
..
.gitignore copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
curl-amissl.m4 configure: delete unused HAVE_OPENSSL3 macro 2024-08-26 11:01:11 +02:00
curl-bearssl.m4 configure: do not echo most inherited LDFLAGS to config files 2024-11-14 09:55:45 +01:00
curl-compilers.m4 tidy-up: whitespace, fix CI spacecheck for docs 2024-10-30 23:15:28 +01:00
curl-confopts.m4 configure: do not echo most inherited LDFLAGS to config files 2024-11-14 09:55:45 +01:00
curl-functions.m4 curl_addrinfo: support operating systems with only getaddrinfo(3) 2024-11-02 22:28:59 +01:00
curl-gnutls.m4 configure: do not echo most inherited LDFLAGS to config files 2024-11-14 09:55:45 +01:00
curl-mbedtls.m4 configure: do not echo most inherited LDFLAGS to config files 2024-11-14 09:55:45 +01:00
curl-openssl.m4 configure: do not echo most inherited LDFLAGS to config files 2024-11-14 09:55:45 +01:00
curl-override.m4 tidy-up: indent, whitespace, #error in make files 2024-09-22 09:51:15 +02:00
curl-reentrant.m4 tidy-up: indentation in autotools sources 2024-09-25 09:10:45 +02:00
curl-rustls.m4 configure: do not echo most inherited LDFLAGS to config files 2024-11-14 09:55:45 +01:00
curl-schannel.m4 copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
curl-sectransp.m4 configure: do not echo most inherited LDFLAGS to config files 2024-11-14 09:55:45 +01:00
curl-sysconfig.m4 configure: do not echo most inherited LDFLAGS to config files 2024-11-14 09:55:45 +01:00
curl-wolfssl.m4 configure: do not echo most inherited LDFLAGS to config files 2024-11-14 09:55:45 +01:00
xc-am-iface.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00
xc-cc-check.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00
xc-lt-iface.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00
xc-val-flgs.m4 configure: fix indentation more 2024-08-26 11:14:01 +02:00
zz40-xc-ovr.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00
zz50-xc-ovr.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00
zz60-xc-ovr.m4 misc: cleanup after removing years from copyright 2024-07-30 14:11:48 +02:00