Package: paraview / 5.9.0-2

libatomic.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Index: paraview-5.9.0~rc1/ThirdParty/protobuf/vtkprotobuf/src/CMakeLists.txt
===================================================================
--- paraview-5.9.0~rc1.orig/ThirdParty/protobuf/vtkprotobuf/src/CMakeLists.txt
+++ paraview-5.9.0~rc1/ThirdParty/protobuf/vtkprotobuf/src/CMakeLists.txt
@@ -310,10 +310,16 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
   endif ()
 endif ()
 
+if ((DEB_HOST_MULTIARCH STREQUAL "arm-linux-gnueabi") OR (DEB_HOST_MULTIARCH STREQUAL "mipsel-linux-gnu"))
+  set(ATOMIC_LIB atomic)
+else ()
+  set(ATOMIC_LIB "")
+endif ()
+
 target_link_libraries(vtkprotoc
   PRIVATE
     ${vtkprotoc_no_as_needed}
     vtklibprotoc
     ParaView::protobuf
-    Threads::Threads)
+    Threads::Threads ${ATOMIC_LIB})
 add_executable(ParaView::protoc ALIAS vtkprotoc)