From: Jean-Michel Vourgère Date: Sun, 9 Aug 2015 00:20:40 +0000 (+0200) Subject: Keep CPPFLAGS when building tcl bindings X-Git-Tag: v1.5.4~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4f4c7e6b1bc38bc91a7275ba634694ccddc1e7b;p=thirdparty%2Frrdtool-1.x.git Keep CPPFLAGS when building tcl bindings If CPPFLAGS=-D_FORTIFY_SOURCE=2 during configuration, tcl compilation was not fortified. This patch adds the missing variable. --- diff --git a/bindings/tcl/Makefile.am b/bindings/tcl/Makefile.am index a7902cda..05b96f1f 100644 --- a/bindings/tcl/Makefile.am +++ b/bindings/tcl/Makefile.am @@ -46,7 +46,7 @@ $(TCL_RRD_LIB): tclrrd.o $(TCL_SHLIB_LD) $(TCL_LD_SEARCH_FLAGS) $(LIBDIRS) $< -o $@ -lrrd_th -lm $(TCL_STUB_LIB_SPEC) $(LDFLAGS) $(LIBS) tclrrd.o: tclrrd.c - $(CC) $(AM_CFLAGS) $(CFLAGS) $(TCL_SHLIB_CFLAGS) $(AM_CPPFLAGS) -c $(srcdir)/tclrrd.c -DVERSION=\"$(VERSION)\" + $(CC) $(AM_CFLAGS) $(CFLAGS) $(TCL_SHLIB_CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -c $(srcdir)/tclrrd.c -DVERSION=\"$(VERSION)\" pkgIndex.tcl: echo "package ifneeded Rrd $(VERSION) \"load $(libdir)/tclrrd$(VERSION)[info sharedlibextension]\"" > $@