For the autogenerated dependencies, we're not interested in the system header files, only the project's ones. So use the option '-MMD' instead of '-MD'. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a36a3d9a3..8b3940e37 100644 --- a/Makefile +++ b/Makefile @@ -99,10 +99,10 @@ EXTRA_OBJS += compile-i386.o # Can we use GCC's generated dependencies? HAVE_GCC_DEP:=$(shell touch .gcc-test.c && \ - $(CC) -c -Wp,-MP,-MD,.gcc-test.d .gcc-test.c 2>/dev/null && \ + $(CC) -c -Wp,-MP,-MMD,.gcc-test.d .gcc-test.c 2>/dev/null && \ echo 'yes'; rm -f .gcc-test.d .gcc-test.o .gcc-test.c) ifeq ($(HAVE_GCC_DEP),yes) -cflags += -Wp,-MP,-MD,$(@D)/.$(@F).d +cflags += -Wp,-MP,-MMD,$(@D)/.$(@F).d endif # Can we use libxml (needed for c2xml)? -- 2.16.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