diff options
Diffstat (limited to 'debian/patches/riscv64-link-libatomic.patch')
-rw-r--r-- | debian/patches/riscv64-link-libatomic.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/debian/patches/riscv64-link-libatomic.patch b/debian/patches/riscv64-link-libatomic.patch new file mode 100644 index 0000000..42bf93f --- /dev/null +++ b/debian/patches/riscv64-link-libatomic.patch @@ -0,0 +1,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}) |