aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/Makefile
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2012-10-29 11:06:46 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-10-31 10:17:48 -0400
commitd30ff29562ecbf79e82df72724d0c6180f2e2c06 (patch)
treed3c44fcf3169a5eb64fc77b2c9a3e186141ee75b /tools/perf/Makefile
parent95d18aa2b6c05351181934b3bc34ce038cc7b637 (diff)
perf tools: Warn about missing libelf
When perf detects no libelf during the build, it'll use internal mini elf parser instead of libelf. But as it only supports minimal functionalities, it also disables support to 'probe' builtin command. Currently it didn't warned to user. Fix it. $ sudo apt-get remove libelf-dev $ make CHK -fstack-protector-all CHK -Wstack-protector CHK -Wvolatile-register-var CHK bionic CHK libelf CHK glibc Makefile:491: No libelf found, disables 'probe' tool, please install elfutils-libelf-devel/libelf-dev CHK libunwind CHK libaudit $ make NO_LIBELF=1 CHK -fstack-protector-all CHK -Wstack-protector CHK -Wvolatile-register-var CHK bionic CHK libaudit Reported-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/n/tip-8ww8zc4hhpxabfskxs3u5ede@git.kernel.org [ committer note: The package needed is elfutils-libelf-devel, not elfutils-devel ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r--tools/perf/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 7e25f59e5e89..b1801e0693c9 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -490,6 +490,8 @@ ifneq ($(call try-cc,$(SOURCE_LIBELF),$(FLAGS_LIBELF),libelf),y)
490 LIBC_SUPPORT := 1 490 LIBC_SUPPORT := 1
491 endif 491 endif
492 ifeq ($(LIBC_SUPPORT),1) 492 ifeq ($(LIBC_SUPPORT),1)
493 msg := $(warning No libelf found, disables 'probe' tool, please install elfutils-libelf-devel/libelf-dev);
494
493 NO_LIBELF := 1 495 NO_LIBELF := 1
494 NO_DWARF := 1 496 NO_DWARF := 1
495 NO_DEMANGLE := 1 497 NO_DEMANGLE := 1