[collectd] [PATCH] src/Makefile: Pass AM_CPPFLAGS to all plugins setting custom CPPFLAGS.
Sebastian Harl
sh at tokkee.org
Sun Jul 13 21:33:19 CEST 2008
Signed-off-by: Sebastian Harl <sh at tokkee.org>
---
src/Makefile.am | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index 3d8b146..2be8cb3 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
--
1.5.6.1.156.ge903b
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20080713/8f28e5be/attachment.pgp
More information about the collectd
mailing list