Link with libatomic explicitly
authorStephen Kitt <skitt@debian.org>
Sun, 21 Jul 2019 15:53:07 +0000 (16:53 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Sun, 21 Jul 2019 15:53:07 +0000 (16:53 +0100)
Some architectures (mipsel...) don't include libatomic by default, and
the build fails there. Since we're linking with --as-needed, we can
safely add -latomic everywhere.

Gbp-Pq: Name add-libatomic.patch

CMakeLists.txt

index 54edb7d50128941a5f11b0efaf8de04609dd35c3..9d0812d48287a083de376545a8303af797b1e66b 100644 (file)
@@ -100,6 +100,7 @@ target_link_libraries(${PROJECT_NAME}
   PRIVATE ${Rhash_LIBRARIES}
   PRIVATE ${CMAKE_THREAD_LIBS_INIT}
   PRIVATE ${ZLIB_LIBRARIES}
+  PRIVATE -latomic
   )
 
 if(LINK_LIBCRYPTO EQUAL 1)