--- vimix-0.7.0+git20220523+ds.orig/CMakeLists.txt	2022-08-17 14:16:23.340293318 +0700
+++ vimix-0.7.0+git20220523+ds/CMakeLists.txt	2022-08-17 14:16:10.808293451 +0700
@@ -669,6 +669,9 @@
     ${PLATFORM_LIBS}
 )
 
+if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "riscv64")
+    target_link_libraries(${VMIX_BINARY} LINK_PRIVATE -latomic)
+endif()
 
 ### DEFINE THE PACKAGING (all OS)
 
