From: octo Date: Sat, 15 Apr 2006 17:34:36 +0000 (+0000) Subject: Link the `disk' plugin against `IOKitLib' when available.. X-Git-Tag: collectd-3.8.6^2~27 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=3fd064e9a6fbc59583b9a7820460c7332e7b99e4;p=collectd.git Link the `disk' plugin against `IOKitLib' when available.. --- diff --git a/src/Makefile.am b/src/Makefile.am index c554abe9..025548a1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -105,6 +105,9 @@ if BUILD_MODULE_DISK pkglib_LTLIBRARIES += disk.la disk_la_SOURCES = disk.c disk_la_LDFLAGS = -module -avoid-version +if BUILD_WITH_LIBIOKIT +disk_la_LDFLAGS += -lIOKit +endif collectd_LDADD += "-dlopen" disk.la collectd_DEPENDENCIES += disk.la endif