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.
1We don't use librt, so don't try and link against it.3Related to: https://github.com/zeromq/libzmq/pull/4702.5diff --git a/CMakeLists.txt b/CMakeLists.txt6index 03462271..87ceab3c 1006447--- a/CMakeLists.txt8+++ b/CMakeLists.txt9@@ -564,13 +564,6 @@ else()10check_cxx_symbol_exists(SO_BUSY_POLL sys/socket.h ZMQ_HAVE_BUSY_POLL)11endif()13-if(NOT MINGW)14- find_library(RT_LIBRARY rt)15- if(RT_LIBRARY)16- set(pkg_config_libs_private "${pkg_config_libs_private} -lrt")17- endif()18-endif()19-20find_package(Threads)22if(WIN32 AND NOT CYGWIN)23@@ -588,9 +581,7 @@ if(WIN32 AND NOT CYGWIN)24endif()26if(NOT MSVC)27- set(CMAKE_REQUIRED_LIBRARIES rt)28check_cxx_symbol_exists(clock_gettime time.h HAVE_CLOCK_GETTIME)29- set(CMAKE_REQUIRED_LIBRARIES)31check_cxx_symbol_exists(fork unistd.h HAVE_FORK)32check_cxx_symbol_exists(gethrtime sys/time.h HAVE_GETHRTIME)33@@ -1503,10 +1494,6 @@ if(BUILD_SHARED)34target_link_libraries(libzmq iphlpapi)35endif()37- if(RT_LIBRARY)38- target_link_libraries(libzmq -lrt)39- endif()40-41if(norm_FOUND)42target_link_libraries(libzmq norm::norm)43endif()44@@ -1553,10 +1540,6 @@ if(BUILD_STATIC)45target_link_libraries(libzmq-static iphlpapi)46endif()48- if(RT_LIBRARY)49- target_link_libraries(libzmq-static -lrt)50- endif()51-52if(CMAKE_SYSTEM_NAME MATCHES "QNX")53add_definitions(-DUNITY_EXCLUDE_MATH_H)54endif()
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.