On Sun, Nov 05, 2017 at 05:25:13PM +0100, Luc Van Oostenryck wrote: > From: Uwe Kleine-König <uwe@xxxxxxxxxxxxxxxxx> > > Debian packages use CPPFLAGS to pass -D_FORTIFY_SOURCE=2 for hardening. > > Originally-by: Uwe Kleine-König <uwe@xxxxxxxxxxxxxxxxx> > Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> Reviewed-by: Josh Triplett <josh@xxxxxxxxxxxxxxxx> > Makefile | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/Makefile b/Makefile > index 39b34f901..f1af83e32 100644 > --- a/Makefile > +++ b/Makefile > @@ -209,10 +209,10 @@ c2xml.o c2xml.sc: CFLAGS += $(LIBXML_CFLAGS) > pre-process.sc: CHECKER_FLAGS += -Wno-vla > > %.o: %.c $(LIB_H) > - $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) $< > + $(QUIET_CC)$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< > > %.sc: %.c sparse > - $(QUIET_CHECK) $(CHECKER) $(CHECKER_FLAGS) -c $(CFLAGS) $< > + $(QUIET_CHECK) $(CHECKER) $(CHECKER_FLAGS) $(CFLAGS) $(CPPFLAGS) -c $< > > ALL_OBJS := $(LIB_OBJS) $(foreach p,$(PROGRAMS),$(p).o $($(p)_EXTRA_DEPS)) > selfcheck: $(ALL_OBJS:.o=.sc) > -- > 2.14.0 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-sparse" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html