From: Sebastian Harl Date: Sun, 13 Jul 2008 19:33:19 +0000 (+0200) Subject: src/Makefile: Pass AM_CPPFLAGS to all plugins setting custom CPPFLAGS. X-Git-Tag: collectd-4.5.0~93^2~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=765c149c2f753252f67a5575c1bddd3d3ee2b38f;p=collectd.git src/Makefile: Pass AM_CPPFLAGS to all plugins setting custom CPPFLAGS. Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- diff --git a/src/Makefile.am b/src/Makefile.am index 3d8b1466..2be8cb3b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -512,7 +512,7 @@ pkglib_LTLIBRARIES += perl.la perl_la_SOURCES = perl.c # Despite C99 providing the "bool" type thru stdbool.h, Perl defines its own # version of that type if HAS_BOOL is not defined... *sigh* -perl_la_CPPFLAGS = -DHAS_BOOL=1 +perl_la_CPPFLAGS = $(AM_CPPFLAGS) -DHAS_BOOL=1 perl_la_CFLAGS = $(AM_CFLAGS) \ $(PERL_CFLAGS) \ -DXS_VERSION=\"$(VERSION)\" -DVERSION=\"$(VERSION)\" @@ -539,7 +539,7 @@ endif if BUILD_PLUGIN_POSTGRESQL pkglib_LTLIBRARIES += postgresql.la postgresql_la_SOURCES = postgresql.c -postgresql_la_CPPFLAGS = $(BUILD_WITH_LIBPQ_CPPFLAGS) +postgresql_la_CPPFLAGS = $(AM_CPPFLAGS) $(BUILD_WITH_LIBPQ_CPPFLAGS) postgresql_la_LDFLAGS = -module -avoid-version \ $(BUILD_WITH_LIBPQ_LDFLAGS) -lpq collectd_LDADD += "-dlopen" postgresql.la