From 7f16c7634fc40b9d699b24aea06fc7299f9ee40c Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Tue, 16 Jul 2019 12:56:08 +0100 Subject: [PATCH] Link with libatomic explicitly 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 54edb7d..9d0812d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) -- 2.30.2