Description: Link libatomic on riscv64 and fix FTBFS Author: Eric Long Last-Update: 2022-09-03 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -155,6 +155,9 @@ list(APPEND LIBRARIES ${CMAKE_DL_LIBS}) endif() +if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "riscv64") + list(APPEND LIBRARIES atomic) +endif() if (BUILD_SHARED_LIBS) add_library(opentracing SHARED ${SRCS})