#
e244d500 |
| 11-Nov-2024 |
Viktor Szakats |
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, a
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 9f56bb608ecfbb8978c6cb72a04d9e8b23162d82 #14681 Follow-up to 4c8adc8fee5e55754da3d8f8d982733a7bf3dece Reported-by: Peter Marko Fixes #15533 Closes #15550
show more ...
|
#
30ab1133 |
| 29-Aug-2024 |
Viktor Szakats |
configure: catch Apple in more target triplets Before this patch, only these triplets were considered Apple: `<cpu>-apple-darwin` After this patch, these are also considered App
configure: catch Apple in more target triplets Before this patch, only these triplets were considered Apple: `<cpu>-apple-darwin` After this patch, these are also considered Apple: `<cpu>-apple-(ios*|tvos*|visionos*|watchos*|<ETC>)` `$host_os` (the last third of the triplet) still has a valid use to differentiate between OS flavours, though for now this isn't used, aligning with CMake. Closes #14728
show more ...
|
#
26ab9027 |
| 26-Aug-2024 |
Viktor Szakats |
configure: fix indentation more Follow-up to 0052b4b52dfbd6455a24dd95837e5236dc8e1f5d #14628 Closes #14682
|
#
e1f61929 |
| 06-Jul-2024 |
Viktor Szakats |
configure: fix `SystemConfiguration` detection Before this patch, `SystemConfiguration` detection failed due to this error when compiling the detection snippet: ``` /Applications
configure: fix `SystemConfiguration` detection Before this patch, `SystemConfiguration` detection failed due to this error when compiling the detection snippet: ``` /Applications/Xcode_15.3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/TargetConditionals.h:140:50: error: missing binary operator before token "(" 140 | #if !defined(__has_extension) || !__has_extension(define_target_os_macros) | ^ ``` Ref: https://github.com/curl/curl/actions/runs/9821817534/job/27117929218#step:6:1079 It occured with gcc-11 when combined with macOS SDK 14.4 and 14.5 (default SDKs in Xcode 15.3 and 15.4 respectively). It did not happen with earlier releases. Despite the failure in `./configure`, `lib/macos.c` compiled with Apple's `TargetConditionals.h` just fine. Turns out that including the `sys/types.h` header before the SDK header fixes the error and makes the detection snippet compile. Cherry-picked from #14097 Closes #14130
show more ...
|
#
6ab7e199 |
| 20-Sep-2023 |
Ryan Schmidt |
cmake, configure: also link with CoreServices When linking with CoreFoundation, also link with CoreServices which is apparently required to avoid an NSInvalidArgumentException in softwar
cmake, configure: also link with CoreServices When linking with CoreFoundation, also link with CoreServices which is apparently required to avoid an NSInvalidArgumentException in software linking with libcurl on macOS Sonoma 14 and later. Fixes #11893 Closes #11894
show more ...
|
#
8b7cbe9d |
| 25-Jul-2023 |
Ryan Schmidt |
macOS: fix target detection more Now SCDynamicStoreCopyProxies is called (and the required frameworks are linked in) on all versions of macOS and only on macOS. Fixes crash due to un
macOS: fix target detection more Now SCDynamicStoreCopyProxies is called (and the required frameworks are linked in) on all versions of macOS and only on macOS. Fixes crash due to undefined symbol when built with the macOS 10.11 SDK or earlier. CURL_OSX_CALL_COPYPROXIES is renamed to CURL_MACOS_CALL_COPYPROXIES and is now only defined when SCDynamicStoreCopyProxies will actually be called. Previously, it was defined when ENABLE_IPV6 was not defined but SCDynamicStoreCopyProxies is not called in that case. TARGET_OS_OSX is only defined in the macOS 10.12 SDK and later and only when dynamic targets are enabled. TARGET_OS_MAC is always defined but means any Mac OS or derivative including macOS, iOS, tvOS, and watchOS. TARGET_OS_IPHONE means any Darwin OS other than macOS. Follow-up to c73b2f82 Fixes #11502 Closes #11516
show more ...
|
#
2bc1d775 |
| 02-Jan-2023 |
Daniel Stenberg |
copyright: update all copyright lines and remove year ranges - they are mostly pointless in all major jurisdictions - many big corporations and projects already don't use them - save
copyright: update all copyright lines and remove year ranges - they are mostly pointless in all major jurisdictions - many big corporations and projects already don't use them - saves us from pointless churn - git keeps history for us - the year range is kept in COPYING checksrc is updated to allow non-year using copyright statements Closes #10205
show more ...
|
#
ad9bc597 |
| 17-May-2022 |
max.mehl |
copyright: make repository REUSE compliant Add licensing and copyright information for all files in this repository. This either happens in the file itself as a comment header or in the
copyright: make repository REUSE compliant Add licensing and copyright information for all files in this repository. This either happens in the file itself as a comment header or in the file `.reuse/dep5`. This commit also adds a Github workflow to check pull requests and adapts copyright.pl to the changes. Closes #8869
show more ...
|
#
62be0960 |
| 16-Jun-2021 |
Gregory Muchka <36249295+Greg-Muchka@users.noreply.github.com> |
hostip: (macOS) free returned memory of SCDynamicStoreCopyProxies From Apples documentation on SCDynamicStoreCopyProxies, "Return Value: A dictionary of key-value pairs that represent th
hostip: (macOS) free returned memory of SCDynamicStoreCopyProxies From Apples documentation on SCDynamicStoreCopyProxies, "Return Value: A dictionary of key-value pairs that represent the current internet proxy settings, or NULL if no proxy settings have been defined or if an error occurred. You must release the returned value." Failure to release the returned value of SCDynamicStoreCopyProxies can result in a memory leak. Source: https://developer.apple.com/documentation/systemconfiguration/1517088-scdynamicstorecopyproxies Closes #7265
show more ...
|
#
31f631a1 |
| 24-May-2021 |
Radek Zajic |
lib/hostip6.c: make NAT64 address synthesis on macOS work Closes #7121
|