From 74bac9bc5636248e0daef5d64ed9fb0082f581d1 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 19 Dec 2007 20:36:40 +0100 Subject: [PATCH] src/Makefile.am: Use curl CFLAGS when building the nginx plugin. Else curl/curl.h cannot be found in non-standard places at build time. Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- src/Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index d229407f..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 -- 2.30.2