X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2FMakefile.am;h=d305d855073ad68cbdd85fe5e558102fa1f2e2f6;hb=ad05cf135ac41af52f761d21f9acd3cd07540c7e;hp=0b3ba0d1cf397d6f2443d688352d359362eea714;hpb=054651e4798cc8b9170c17fc7d8884b1bb1d7a87;p=collectd.git diff --git a/src/Makefile.am b/src/Makefile.am index 0b3ba0d1..d305d855 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -405,9 +405,12 @@ endif if BUILD_PLUGIN_NGINX pkglib_LTLIBRARIES += nginx.la nginx_la_SOURCES = nginx.c +nginx_la_CFLAGS = $(AM_CFLAGS) +nginx_la_LIBADD = nginx_la_LDFLAGS = -module -avoid-version if BUILD_WITH_LIBCURL -nginx_la_LDFLAGS += $(BUILD_WITH_LIBCURL_LIBS) +nginx_la_CFLAGS += $(BUILD_WITH_LIBCURL_CFLAGS) +nginx_la_LIBADD += $(BUILD_WITH_LIBCURL_LIBS) endif collectd_LDADD += "-dlopen" nginx.la collectd_DEPENDENCIES += nginx.la @@ -480,10 +483,9 @@ endif if BUILD_PLUGIN_SENSORS pkglib_LTLIBRARIES += sensors.la sensors_la_SOURCES = sensors.c -sensors_la_LDFLAGS = -module -avoid-version -if BUILD_WITH_LM_SENSORS -sensors_la_LDFLAGS += -lsensors -endif +sensors_la_CFLAGS = $(BUILD_WITH_LIBSENSORS_CFLAGS) +sensors_la_LDFLAGS = -module -avoid-version $(BUILD_WITH_LIBSENSORS_LDFLAGS) +sensors_la_LIBADD = -lsensors collectd_LDADD += "-dlopen" sensors.la collectd_DEPENDENCIES += sensors.la endif