From b40597cbe1af6f2969f40776d5d0afd3b3409b83 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Sun, 21 Jul 2019 16:53:07 +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