diff --git a/test/Makefile b/test/Makefile
index 2e52f7e0fd54978192bdee8959348cf12b9c92d0..e749285a509a162e521920fe404a9d75ae9e9969 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -3,7 +3,7 @@
 
 PROG = unit_test
 PROF_FLAGS = -fprofile-arcs -ftest-coverage -g -O0 -DGUI
-CFLAGS = -W -Wall -I.. $(PROF_FLAGS) $(CFLAGS_EXTRA)
+CFLAGS = -W -Wall -pthread -I.. $(PROF_FLAGS) $(CFLAGS_EXTRA)
 SOURCES = $(PROG).c
 
 all: $(PROG)