]> asedeno.scripts.mit.edu Git - linux.git/commit
libsubcmd: Make _FORTIFY_SOURCE defines dependent on the feature
authorIan Rogers <irogers@google.com>
Wed, 25 Sep 2019 19:59:23 +0000 (12:59 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 27 Sep 2019 12:26:14 +0000 (09:26 -0300)
commit4b0b2b096da9d296e0e5668cdfba8613bd6f5bc8
tree264b82fa99068f3fe481d364cd4e732afc9f6691
parentda05b5ea12c1e50b2988a63470d6b69434796f8b
libsubcmd: Make _FORTIFY_SOURCE defines dependent on the feature

Unconditionally defining _FORTIFY_SOURCE can break tools that don't work
with it, such as memory sanitizers:

  https://github.com/google/sanitizers/wiki/AddressSanitizer#faq

Fixes: 4b6ab94eabe4 ("perf subcmd: Create subcmd library")
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lore.kernel.org/lkml/20190925195924.152834-1-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/subcmd/Makefile