]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Keep CPPFLAGS when building tcl bindings 650/head
authorJean-Michel Vourgère <nirgal@debian.org>
Sun, 9 Aug 2015 00:20:40 +0000 (02:20 +0200)
committerJean-Michel Vourgère <nirgal@debian.org>
Sun, 9 Aug 2015 01:47:01 +0000 (03:47 +0200)
If CPPFLAGS=-D_FORTIFY_SOURCE=2 during configuration, tcl compilation was not fortified.
This patch adds the missing variable.

bindings/tcl/Makefile.am

index a7902cda270181d081fafb25df4a86158e4d0d6b..05b96f1f62cbccfa73547cd0815b589a8e00696e 100644 (file)
@@ -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]\"" > $@