diff --git a/daemon/src/video/test/Makefile.am b/daemon/src/video/test/Makefile.am
index e1f1b5822bee118fbb45d7ce0e5b7bd795b6d704..17f2b6077da5a7ea6d016b96e4be4abf7351d0f4 100644
--- a/daemon/src/video/test/Makefile.am
+++ b/daemon/src/video/test/Makefile.am
@@ -13,7 +13,7 @@ test_video_input_SOURCES=test_video_input.cpp test_video_input.h
 test_video_input_LDADD=$(top_builddir)/src/libsflphone.la $(top_builddir)/src/video/libvideo.la $(YAML_LIBS)
 
 test_shm_SOURCES=test_shm.cpp shm_src.cpp shm_src.h
-test_shm_LDADD=$(top_builddir)/src/libsflphone.la $(top_builddir)/src/video/libvideo.la $(YAML_LIBS)
+test_shm_LDADD=$(top_builddir)/src/libsflphone.la $(top_builddir)/src/video/libvideo.la $(YAML_LIBS) -lrt
 test_shm_CXXFLAGS=$(AM_CXXFLAGS)
 
 AM_CXXFLAGS=-I$(top_builddir)/src/video -I$(top_builddir)/src