From 3ca0b5ee03dcbe55733f1624c7d84140b255d94a Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sat, 30 Oct 2004 20:58:51 -0800 Subject: Make sparse pick up the gcc internal include directory automatically. m68k used to do this by hand, but it really ends up being needed for any environment that does cross-builds, so just do it unconditionally. This should mean that you never need to cross-build sparse or have any other hacks for checking a cross-built environment. --- scripts/Makefile.build | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 672b0082e21f..9ed771f02846 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -83,6 +83,7 @@ __build: $(if $(KBUILD_BUILTIN),$(builtin-target) $(lib-target) $(extra-y)) \ # Linus' kernel sanity checking tool ifneq ($(KBUILD_CHECKSRC),0) + CHECKFLAGS += -I$(shell $(CC) -print-file-name=include) ifeq ($(KBUILD_CHECKSRC),2) quiet_cmd_force_checksrc = CHECK $< cmd_force_checksrc = $(CHECK) $(CHECKFLAGS) $(c_flags) $< ; -- cgit v1.2.3