mirror of
https://github.com/curl/curl.git
synced 2026-04-29 12:52:12 +03:00
Implement the `--enable-versioned-symbols` feature available in
`./configure` for CMake.
Enable with `-DCURL_LIBCURL_VERSIONED_SYMBOLS=ON`. Customize the version
prefix with `-DCURL_LIBCURL_VERSIONED_SYMBOLS_PREFIX=MYPREFIX_`. By
default the prefix matches what autotools uses.
When enabled, the feature is detected and a warning shown if
unavailable. (E.g. on Apple and Windows, it isn't.)
Included `HIDDEN {};` to match autotools, though I don't know if it's
necessary, useful or making any difference.
Differences from the autotools implementation:
- soversion is dynamic instead of hard-coded.
- omits referencing non-curl symbols.
- allows prefix/flavour override.
- more universal feature detection.
- doesn't rely on the in-repo `lib/libcurl.vers.in` file.
Also:
- add mbedTLS and BearSSL versioned symbol prefix support to autotools.
- enable this option in an old-linux job.
Follow-up to
|
||
|---|---|---|
| .. | ||
| appveyor-status.yml | ||
| awslc.yml | ||
| badwords.yml | ||
| binarycheck.yml | ||
| codeql-analysis.yml | ||
| codespell.yml | ||
| configure-vs-cmake.yml | ||
| curl-for-win.yml | ||
| cygwin.yml | ||
| distcheck.yml | ||
| fuzz.yml | ||
| hacktoberfest-accepted.yml | ||
| http3-linux.yml | ||
| label.yml | ||
| linkcheck.yml | ||
| linux-old.yml | ||
| linux.yml | ||
| linux32.yml | ||
| macos.yml | ||
| man-examples.yml | ||
| non-native.yml | ||
| proselint.yml | ||
| reuse.yml | ||
| shellcheck.yml | ||
| spacecheck.yml | ||
| spellcheck.yml | ||
| synopsis.yml | ||
| torture.yml | ||
| windows.yml | ||
| wolfssl.yml | ||