Skip to content

Commit 1ae67da

Browse files
committed
Adjusted pthread LDFLAG in examples required for multithreading.
- Some versions of gcc/libc require setting the pthread flag when using std::thread, which to implement it. - This was found compiling the library in a Debian (bullseye) container.
1 parent 243b790 commit 1ae67da

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

examples/reading_logs_via_rule_message/Makefile.am

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ simple_request_LDFLAGS = \
2121
-L$(top_builddir)/src/.libs/ \
2222
$(GEOIP_LDFLAGS) \
2323
-lmodsecurity \
24+
-lpthread \
2425
-lm \
2526
-lstdc++ \
2627
$(LMDB_LDFLAGS) \

examples/reading_logs_with_offset/Makefile.am

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ read_LDFLAGS = \
2121
-L$(top_builddir)/src/.libs/ \
2222
$(GEOIP_LDFLAGS) \
2323
-lmodsecurity \
24-
-lpthread \
2524
-lm \
2625
-lstdc++ \
2726
$(LMDB_LDFLAGS) \

0 commit comments

Comments
 (0)