From: octo Date: Tue, 11 Apr 2006 22:24:09 +0000 (+0000) Subject: Link the battery plugin to `IOKit' if present. X-Git-Tag: collectd-3.8.6^2~49 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=fe3cd8b75c242397d35cd857cbb5b477c3dccf14 Link the battery plugin to `IOKit' if present. --- diff --git a/src/Makefile.am b/src/Makefile.am index dc47b884..c554abe9 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -70,6 +70,9 @@ if BUILD_MODULE_BATTERY pkglib_LTLIBRARIES += battery.la battery_la_SOURCES = battery.c battery_la_LDFLAGS = -module -avoid-version +if BUILD_WITH_LIBIOKIT +battery_la_LDFLAGS += -lIOKit +endif collectd_LDADD += "-dlopen" battery.la collectd_DEPENDENCIES += battery.la endif