From 3fd064e9a6fbc59583b9a7820460c7332e7b99e4 Mon Sep 17 00:00:00 2001 From: octo Date: Sat, 15 Apr 2006 17:34:36 +0000 Subject: [PATCH] Link the `disk' plugin against `IOKitLib' when available.. --- src/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.30.2