From 0461c1c0652a2b389165da917b1fd45f75b572c3 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Wed, 21 Feb 2018 22:46:36 -0300 Subject: [PATCH] Fix examples compilation while using disable-shared --- examples/multiprocess_c/Makefile.am | 2 ++ examples/simple_example_using_c/Makefile.am | 2 ++ 2 files changed, 4 insertions(+) diff --git a/examples/multiprocess_c/Makefile.am b/examples/multiprocess_c/Makefile.am index 97788def..15249b01 100644 --- a/examples/multiprocess_c/Makefile.am +++ b/examples/multiprocess_c/Makefile.am @@ -15,6 +15,8 @@ multi_LDFLAGS = \ $(GEOIP_LDFLAGS) \ -lmodsecurity \ -lpthread \ + -lm \ + -lstdc++ \ $(LUA_LDFLAGS) \ $(SSDEEP_LDFLAGS) \ $(YAJL_LDFLAGS) diff --git a/examples/simple_example_using_c/Makefile.am b/examples/simple_example_using_c/Makefile.am index 450e0220..b03ab96d 100644 --- a/examples/simple_example_using_c/Makefile.am +++ b/examples/simple_example_using_c/Makefile.am @@ -14,6 +14,8 @@ test_LDFLAGS = \ -L$(top_builddir)/src/.libs/ \ $(GEOIP_LDFLAGS) \ -lmodsecurity \ + -lm \ + -lstdc++ \ $(LUA_LDFLAGS) \ $(SSDEEP_LDFLAGS) \ $(YAJL_LDFLAGS)