diff options
author | Michal Marek <mmarek@suse.com> | 2016-06-07 11:57:02 +0200 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2016-06-07 23:39:03 +0200 |
commit | b36fad65d61fffe4b662d4bfb1ed673c455a36a2 (patch) | |
tree | eb05dc1d758ff5c025ec39e0a19f1c8310b36e85 /Makefile | |
parent | Linux 4.7-rc1 (diff) | |
download | linux-b36fad65d61fffe4b662d4bfb1ed673c455a36a2.tar.xz linux-b36fad65d61fffe4b662d4bfb1ed673c455a36a2.zip |
kbuild: Initialize exported variables
The NOSTDINC_FLAGS variable is exported, so it needs to be cleared to
avoid duplicating its content when running make from within make (e.g.
in the packaging targets). This became an issue after commit
9c8fa9bc08f6 ("kbuild: fix if_change and friends to consider argument
order"), which no longer ignores the duplicate options. As Paulo Zanoni
points out, the LDFLAGS_vmlinux variable has the same problem.
Reported-by: "Zanoni, Paulo R" <paulo.r.zanoni@intel.com>
Fixes: 9c8fa9bc08f6 ("kbuild: fix if_change and friends to consider argument order")
Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -363,11 +363,13 @@ CHECK = sparse CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \ -Wbitwise -Wno-return-void $(CF) +NOSTDINC_FLAGS = CFLAGS_MODULE = AFLAGS_MODULE = LDFLAGS_MODULE = CFLAGS_KERNEL = AFLAGS_KERNEL = +LDFLAGS_vmlinux = CFLAGS_GCOV = -fprofile-arcs -ftest-coverage -fno-tree-loop-im -Wno-maybe-uninitialized CFLAGS_KCOV = -fsanitize-coverage=trace-pc |