Skip to content

Commit

Permalink
Merge pull request #13 from AntelopeIO/bsd-stability-issues
Browse files Browse the repository at this point in the history
Force using pthread emulation on FreeBSD for boost/interprocess
  • Loading branch information
vladtr authored May 3, 2023
2 parents c1d30da + cb72879 commit c4718cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ if(WIN32)
target_link_libraries( chainbase ws2_32 mswsock )
endif()

# for BSD we should avoid any pthread calls such as pthread_mutex_lock
# in boost/interprocess
if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
target_compile_definitions(chainbase PUBLIC BOOST_INTERPROCESS_FORCE_GENERIC_EMULATION)
endif()

enable_testing()
add_subdirectory( test )

Expand Down

0 comments on commit c4718cb

Please sign in to comment.