File: riscv64-link-libatomic.patch

package info (click to toggle)
opentracing-cpp 1.6.0-4.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,572 kB
  • sloc: cpp: 14,234; ansic: 68; sh: 16; makefile: 5
file content (15 lines) | stat: -rw-r--r-- 388 bytes parent folder | download | duplicates (2)
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})