]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
perf: Auto-detect libbfd
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 5 Aug 2009 12:05:16 +0000 (14:05 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 5 Aug 2009 12:12:08 +0000 (14:12 +0200)
commit2cdbc46d7b2cb0acb68c3ecad93b000552121fa6
treef56deaa9e5c3c030d1a0c53a158a43a3212759d8
parent114cfab222233f50f46d7162cf7d99fdc6c271e5
perf: Auto-detect libbfd

Since the C++ demangling isn't needed for everybody and
bfd/iberty aren't widely/easily available on all machines, make
it optional.

It also allows you to forcefully disable demangling by using
NO_DEMANGLE=1 and otherwise tries to detect libbfd/libiberty
combinations that result in a compiling demangler.

Reported-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Kyle McMartin <kyle@mcmartin.ca>
LKML-Reference: <20090801082048.GX12579@kernel.dk>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/Makefile
tools/perf/util/symbol.c