Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1[cmake] Fix shared library versioning on OpenBSD.3This emulates Libtool to make sure Libtool and CMake agree on the ABI4version. Specifically, for OpenBSD, `builds/unix/configure` defines5`version_type=sunos` and skips defining `soname_spec`.7See upstream MR: https://gitlab.freedesktop.org/freetype/freetype/-/merge_requests/433.9--- a/CMakeLists.txt10+++ b/CMakeLists.txt11@@ -458,9 +458,17 @@ if (WIN32)12endif ()14if (BUILD_SHARED_LIBS)15- set_target_properties(freetype PROPERTIES16- VERSION ${LIBRARY_VERSION}17- SOVERSION ${LIBRARY_SOVERSION})18+ if (CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")19+ # For OpenBSD, libtool follows `sunos` version type.20+ set_target_properties(freetype PROPERTIES21+ # libtool does not define its internal `soname_spec` variable22+ # for OpenBSD. So skipping the SOVERSION option.23+ VERSION ${LIBTOOL_CURRENT}.${LIBTOOL_REVISION})24+ else ()25+ set_target_properties(freetype PROPERTIES26+ VERSION ${LIBRARY_VERSION}27+ SOVERSION ${LIBRARY_SOVERSION})28+ endif ()29endif ()31# Pick up ftconfig.h and ftoption.h generated above, first.
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.