X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2FMakefile.am;h=935ed7b5b2b007c040214924953334a757ce428d;hb=037645b13aeb23c64d06776c679cb3d2b73a2235;hp=26db76db24cfcb2ad0788679584d5d16b53d207a;hpb=8490780130e2b31287d6731c187ba0ae3b645368;p=collectd.git diff --git a/src/Makefile.am b/src/Makefile.am index 26db76db..935ed7b5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -604,6 +604,11 @@ perl_la_CPPFLAGS = $(AM_CPPFLAGS) -DHAS_BOOL=1 perl_la_CFLAGS = $(AM_CFLAGS) \ $(PERL_CFLAGS) \ -DXS_VERSION=\"$(VERSION)\" -DVERSION=\"$(VERSION)\" +# Work-around for issues #41 and #42 - Perl 5.10 incorrectly introduced +# __attribute__nonnull__(3) for Perl_load_module(). +if HAVE_BROKEN_PERL_LOAD_MODULE +perl_la_CFLAGS += -Wno-nonnull +endif perl_la_LDFLAGS = -module -avoid-version \ $(PERL_LDFLAGS) collectd_LDADD += "-dlopen" perl.la