tools/perf/build: Improve the 'stackprotector' feature test
authorIngo Molnar <mingo@kernel.org>
Thu, 10 Oct 2013 07:06:21 +0000 (09:06 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 14 Oct 2013 13:29:15 +0000 (10:29 -0300)
commit046fa7ae20d2390c65be8eb406efecff15e8b71d
treeef18ecaa3abd5d547bbd6a9e7440e9884a2fec3e
parent01287e2cb7ad17b3d77751888d458a6b6a2bba15
tools/perf/build: Improve the 'stackprotector' feature test

Namhyung Kim noticed that the stackprotector testcase was incomplete:

  > The flag being checked should be -"W"stack-protector instead of
  > -"f"stack-protector.  And the gcc manpage says that -Wstack-protector is
  > only active when -fstack-protector is active.  So the end result should
  > look like
  >
  >         $(BUILD) -Werror -fstack-protector -Wstack-protector

Add -Wstack-protector.

Reported-by: Namhyung Kim <namhyung@kernel.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/config/feature-checks/Makefile