perf tools: Propagate CFLAGS to libperf
authorJiri Olsa <jolsa@kernel.org>
Fri, 11 Oct 2019 12:21:55 +0000 (14:21 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 11 Oct 2019 13:55:22 +0000 (10:55 -0300)
commit55542113c690a567e728e40d4181d7d037fc21b0
treecd338e7c24cd7995fc2294c88da1b4adfbb86aa3
parent84227cb11ff4d9815b9b1daf0c1a2bd7e9274c58
perf tools: Propagate CFLAGS to libperf

Andi reported that 'make DEBUG=1' does not propagate to the libbperf
code. It's true also for the other flags. Changing the code to propagate
the global build flags to libperf compilation.

Reported-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20191011122155.15738-1-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile.config
tools/perf/Makefile.perf
tools/perf/lib/core.c