Message ID | 20180419045418.23676-1-uwe@kleine-koenig.org (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
On Thu, Apr 19, 2018 at 06:54:18AM +0200, Uwe Kleine-König wrote: > CPPFLAGS is a standard variable that should be passed to the compiler. > > Debian's package build tools pass "-Wdate-time -D_FORTIFY_SOURCE=2" in this > variable. > > Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org> Acked-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/Makefile b/Makefile index 0bd370b8dc0e..a72802ff986a 100644 --- a/Makefile +++ b/Makefile @@ -213,10 +213,10 @@ c2xml.o c2xml.sc: PKG_CFLAGS += $(LIBXML_CFLAGS) pre-process.sc: CHECKER_FLAGS += -Wno-vla %.o: %.c $(LIB_H) - $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $< + $(QUIET_CC)$(CC) -o $@ -c $(ALL_CFLAGS) $(CPPFLAGS) $< %.sc: %.c sparse - $(QUIET_CHECK) $(CHECKER) $(CHECKER_FLAGS) -c $(ALL_CFLAGS) $< + $(QUIET_CHECK) $(CHECKER) $(CHECKER_FLAGS) -c $(ALL_CFLAGS) $(CPPFLAGS) $< ALL_OBJS := $(LIB_OBJS) $(foreach p,$(PROGRAMS),$(p).o $($(p)_EXTRA_DEPS)) selfcheck: $(ALL_OBJS:.o=.sc)
CPPFLAGS is a standard variable that should be passed to the compiler. Debian's package build tools pass "-Wdate-time -D_FORTIFY_SOURCE=2" in this variable. Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org> --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)