aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/config/Makefile
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2013-10-10 16:24:00 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-10-14 09:28:56 -0400
commit3e6a147deef93ddbb899cb394d8d44118289e76a (patch)
treecae96b64788d4bb308f004479fec1e5eddcc6873 /tools/perf/config/Makefile
parent1df9297c8535a5bb2b776381e63d8334f87d4abe (diff)
perf tools: Separate lbfd check out of NO_DEMANGLE condition
We fail build with NO_DEMANGLE with missing -lbfd externals error. The reason is that we now use bfd code in srcline object: perf tools: Implement addr2line directly using libbfd So we need to check/add -lbfd always now. Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com> Cc: David Ahern <dsahern@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/config/Makefile')
-rw-r--r--tools/perf/config/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
index 29ad7d6c5311..96804247df08 100644
--- a/tools/perf/config/Makefile
+++ b/tools/perf/config/Makefile
@@ -470,6 +470,10 @@ else
470 endif 470 endif
471endif 471endif
472 472
473ifeq ($(feature-libbfd), 1)
474 EXTLIBS += -lbfd
475endif
476
473ifdef NO_DEMANGLE 477ifdef NO_DEMANGLE
474 CFLAGS += -DNO_DEMANGLE 478 CFLAGS += -DNO_DEMANGLE
475else 479else
@@ -477,9 +481,7 @@ else
477 EXTLIBS += -liberty 481 EXTLIBS += -liberty
478 CFLAGS += -DHAVE_CPLUS_DEMANGLE_SUPPORT 482 CFLAGS += -DHAVE_CPLUS_DEMANGLE_SUPPORT
479 else 483 else
480 ifeq ($(feature-libbfd), 1) 484 ifneq ($(feature-libbfd), 1)
481 EXTLIBS += -lbfd
482 else
483 $(feature_check,liberty) 485 $(feature_check,liberty)
484 ifeq ($(feature-liberty), 1) 486 ifeq ($(feature-liberty), 1)
485 EXTLIBS += -lbfd -liberty 487 EXTLIBS += -lbfd -liberty
@@ -502,6 +504,10 @@ else
502 endif 504 endif
503endif 505endif
504 506
507ifneq ($(filter -lbfd,$(EXTLIBS)),)
508 CFLAGS += -DHAVE_LIBBFD_SUPPORT
509endif
510
505ifndef NO_ON_EXIT 511ifndef NO_ON_EXIT
506 ifeq ($(feature-on-exit), 1) 512 ifeq ($(feature-on-exit), 1)
507 CFLAGS += -DHAVE_ON_EXIT_SUPPORT 513 CFLAGS += -DHAVE_ON_EXIT_SUPPORT
@@ -524,10 +530,6 @@ ifndef NO_LIBNUMA
524 endif 530 endif
525endif 531endif
526 532
527ifndef ($(filter -lbfd,$(EXTLIBS)),)
528 CFLAGS += -DHAVE_LIBBFD_SUPPORT
529endif
530
531# Among the variables below, these: 533# Among the variables below, these:
532# perfexecdir 534# perfexecdir
533# template_dir 535# template_dir