File: atomic.patch

package info (click to toggle)
openvdb 10.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,092 kB
  • sloc: cpp: 293,853; ansic: 2,268; python: 776; objc: 714; sh: 527; yacc: 382; lex: 348; makefile: 176
file content (19 lines) | stat: -rw-r--r-- 669 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Fix compilation error with missing atomic
 TBB requires -latomic on arch where copy-on-swap is missing
 (eg ppc32, armel...)
Author: Mathieu Malaterre <malat@debian.org>
Forwarded: no
Last-Update: 2021-08-27

Index: openvdb/openvdb/openvdb/CMakeLists.txt
===================================================================
--- openvdb.orig/openvdb/openvdb/CMakeLists.txt
+++ openvdb/openvdb/openvdb/CMakeLists.txt
@@ -246,6 +246,7 @@ endif()
 
 if(UNIX)
   list(APPEND OPENVDB_CORE_DEPENDENT_LIBS Threads::Threads)
+  list(APPEND OPENVDB_CORE_DEPENDENT_LIBS atomic)
 endif()
 
 # Pull in Boost last as houdini's boost (hboost) is fully namespaced and libs