Link with libatomic.
authorPeter Michael Green <plugwash@raspbian.org>
Sat, 23 Apr 2022 15:15:39 +0000 (15:15 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Sat, 23 Apr 2022 15:15:39 +0000 (15:15 +0000)
Gbp-Pq: Name link-with-libatomic.patch

setup.py
src/CMakeLists.txt

index 5a75a1c05035f4eda367bbb6a5c2d7b0efbce67a..8d505926441838063b2a66d19c92a40a1dd81bab 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ ext_modules = [
             "/usr/local/include/eigen3",
         ],
         # no CGAL libraries necessary from CGAL 5.0 onwards
-        libraries=["gmp", "mpfr"],
+        libraries=["gmp", "mpfr","atomic"],
     )
 ]
 
index d2145889db176d0a7771d12444a7d712222f5bff..0a189864c450807597887a21dafe2f4063a46516 100644 (file)
@@ -13,7 +13,7 @@ FILE(GLOB pygalmesh_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")
 pybind11_add_module(pygalmesh ${pygalmesh_SRCS})
 
 # ADD_LIBRARY(pygalmesh ${pygalmesh_SRCS})
-target_link_libraries(pygalmesh PRIVATE ${CGAL_LIBRARIES})
+target_link_libraries(pygalmesh PRIVATE ${CGAL_LIBRARIES} -latomic)
 
 # https://github.com/CGAL/cgal/issues/6002
 # find_program(iwyu_path NAMES include-what-you-use iwyu REQUIRED)