Skip to content

Commit

Permalink
build: link omelasticsearch against -lm
Browse files Browse the repository at this point in the history
Use LT_LIB_M to find the math library which is needed for pow().
  • Loading branch information
mbiebl authored and rgerhards committed Dec 13, 2012
1 parent a7dfc4b commit 2ab69c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@ AC_ARG_ENABLE(elasticsearch,
)
if test "x$enable_elasticsearch" = "xyes"; then
PKG_CHECK_MODULES([CURL], [libcurl])
LT_LIB_M
fi
AM_CONDITIONAL(ENABLE_ELASTICSEARCH, test x$enable_elasticsearch = xyes)

Expand Down
2 changes: 1 addition & 1 deletion plugins/omelasticsearch/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ pkglib_LTLIBRARIES = omelasticsearch.la
omelasticsearch_la_SOURCES = omelasticsearch.c
omelasticsearch_la_CPPFLAGS = $(RSRT_CFLAGS) $(PTHREADS_CFLAGS)
omelasticsearch_la_LDFLAGS = -module -avoid-version
omelasticsearch_la_LIBADD = $(CURL_LIBS)
omelasticsearch_la_LIBADD = $(CURL_LIBS) $(LIBM)

EXTRA_DIST =

0 comments on commit 2ab69c6

Please sign in to comment.