diff --git a/examples/multithread/Makefile.am b/examples/multithread/Makefile.am index 40e81dd15c..c17b431a35 100644 --- a/examples/multithread/Makefile.am +++ b/examples/multithread/Makefile.am @@ -21,6 +21,7 @@ multithread_LDFLAGS = \ -L$(top_builddir)/src/.libs/ \ $(GEOIP_LDFLAGS) \ -lmodsecurity \ + -lpthread \ -lm \ -lstdc++ \ $(LMDB_LDFLAGS) \ diff --git a/examples/reading_logs_with_offset/Makefile.am b/examples/reading_logs_with_offset/Makefile.am index 3ecda10cbb..f845c5837a 100644 --- a/examples/reading_logs_with_offset/Makefile.am +++ b/examples/reading_logs_with_offset/Makefile.am @@ -21,6 +21,7 @@ read_LDFLAGS = \ -L$(top_builddir)/src/.libs/ \ $(GEOIP_LDFLAGS) \ -lmodsecurity \ + -lpthread \ -lm \ -lstdc++ \ $(LMDB_LDFLAGS) \