--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1308,6 +1308,7 @@ set(SYSTEM_LIBRARIES
   ${KRB5_LIBRARIES}
   ${CMAKE_THREAD_LIBS_INIT}
   ${LIBURCU_LIB}
+  -Wl,--as-needed -latomic
 )
 
 include_directories(${LIBURCU_INC})
