X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2FMakefile.am;h=b1fe3c55c7ddc0d79f609eb43191a2af79888d14;hb=141816828389e3ad98f66db29b4a702479dcb05d;hp=a51e2ec06c43cefa520b39e6711342e4590cc1bb;hpb=7adc8768ee5f7276d1964da6d268effba557d3a5;p=collectd.git diff --git a/src/Makefile.am b/src/Makefile.am index a51e2ec0..b1fe3c55 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -850,7 +850,8 @@ perl_la_SOURCES = perl.c perl_la_CPPFLAGS = $(AM_CPPFLAGS) -DHAS_BOOL=1 # Despite off_t being 64 bit wide on 64 bit platforms, Perl insist on using # off64_t which is only exposed when _LARGEFILE64_SOURCE is defined... *sigh* -perl_la_CPPFLAGS += -D_LARGEFILE64_SOURCE +# On older platforms we also need _REENTRANT. _GNU_SOURCE sets both of these. +perl_la_CPPFLAGS += -D_GNU_SOURCE perl_la_CFLAGS = $(AM_CFLAGS) \ $(PERL_CFLAGS) \ -DXS_VERSION=\"$(VERSION)\" -DVERSION=\"$(VERSION)\" @@ -906,13 +907,11 @@ endif if BUILD_PLUGIN_PYTHON pkglib_LTLIBRARIES += python.la python_la_SOURCES = python.c pyconfig.c pyvalues.c cpython.h -python_la_CPPFLAGS = $(AM_CPPFLAGS) $(BUILD_WITH_PYTHON_CPPFLAGS) -python_la_CFLAGS = $(AM_CFLAGS) +python_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBPYTHON_CPPFLAGS) if COMPILER_IS_GCC -python_la_CFLAGS += -fno-strict-aliasing -Wno-strict-aliasing +python_la_CPPFLAGS += -fno-strict-aliasing -Wno-strict-aliasing endif -python_la_LDFLAGS = $(PLUGIN_LDFLAGS) $(BUILD_WITH_PYTHON_LDFLAGS) -python_la_LIBADD = $(BUILD_WITH_PYTHON_LIBS) +python_la_LDFLAGS = $(PLUGIN_LDFLAGS) $(LIBPYTHON_LDFLAGS) endif if BUILD_PLUGIN_PROCESSES