--- a/Makefile
+++ b/Makefile
@@ -94,6 +94,7 @@
 LDFLAGS := \
     ${LDFLAGS} \
     -pthread \
+    -latomic \
     -lrt
 
 # https://www.gnu.org/prep/standards/html_node/Directory-Variables.html
