summaryrefslogtreecommitdiffstats
path: root/debian/patches/riscv64-link-libatomic.patch
blob: 42bf93fd2a22ce73a5978bde4ea08468070784a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Link libatomic on riscv64 and fix FTBFS
Author: Eric Long <i@hack3r.moe>
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})