summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ee992f5)
raw | patch | inline | side by side (parent: ee992f5)
author | Florian Forster <octo@collectd.org> | |
Wed, 5 Sep 2012 06:43:18 +0000 (08:43 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Wed, 5 Sep 2012 06:43:18 +0000 (08:43 +0200) |
Under FreeBSD, running src/utils_format_json.c fails because isfinite()
cannot be resolved. The GNU manpages for isnan() and isfinite() also
advise users to link with libm and AIX has had the library being linked
in for a while. Since it's such a basic library it seems easier to just
link with it unconditionally.
Fixes Github issue #122.
cannot be resolved. The GNU manpages for isnan() and isfinite() also
advise users to link with libm and AIX has had the library being linked
in for a while. Since it's such a basic library it seems easier to just
link with it unconditionally.
Fixes Github issue #122.
src/Makefile.am | patch | blob | history |
diff --git a/src/Makefile.am b/src/Makefile.am
index fd85107f1dec4a539e49d177a222c08024cb5df7..29aac6a96171cf257b6f13e7d0f51620db629e26 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
collectd_CPPFLAGS = $(AM_CPPFLAGS) $(LTDLINCL)
collectd_CFLAGS = $(AM_CFLAGS)
collectd_LDFLAGS = -export-dynamic
-collectd_LDADD =
+collectd_LDADD = -lm
collectd_DEPENDENCIES =
# Link to these libraries..
endif
if BUILD_AIX
collectd_LDFLAGS += -Wl,-bexpall,-brtllib
-collectd_LDADD += -lm
endif
# The daemon needs to call sg_init, so we need to link it against libstatgrab,