--- a/src/mk/localdefs.in
+++ b/src/mk/localdefs.in
@@ -25,6 +25,7 @@
 RECOLL_DATADIR = ${datadir}/recoll
 
 @NOPIC@PICFLAGS = $(SYSPICFLAGS)
+@NOTHREADS@LIBTHREADS = $(LIBSYSTHREADS)
 
 LOCALCXXFLAGS = -g -O2 -Wall -Wno-unused \
 	      $(INCICONV) $(XAPIANCXXFLAGS) $(X_CFLAGS) \