diff options
author | Jiri Olsa <jolsa@redhat.com> | 2013-10-10 16:24:00 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-10-14 09:28:56 -0400 |
commit | 3e6a147deef93ddbb899cb394d8d44118289e76a (patch) | |
tree | cae96b64788d4bb308f004479fec1e5eddcc6873 /tools/perf/config/Makefile | |
parent | 1df9297c8535a5bb2b776381e63d8334f87d4abe (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/Makefile | 16 |
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 |
471 | endif | 471 | endif |
472 | 472 | ||
473 | ifeq ($(feature-libbfd), 1) | ||
474 | EXTLIBS += -lbfd | ||
475 | endif | ||
476 | |||
473 | ifdef NO_DEMANGLE | 477 | ifdef NO_DEMANGLE |
474 | CFLAGS += -DNO_DEMANGLE | 478 | CFLAGS += -DNO_DEMANGLE |
475 | else | 479 | else |
@@ -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 |
503 | endif | 505 | endif |
504 | 506 | ||
507 | ifneq ($(filter -lbfd,$(EXTLIBS)),) | ||
508 | CFLAGS += -DHAVE_LIBBFD_SUPPORT | ||
509 | endif | ||
510 | |||
505 | ifndef NO_ON_EXIT | 511 | ifndef 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 |
525 | endif | 531 | endif |
526 | 532 | ||
527 | ifndef ($(filter -lbfd,$(EXTLIBS)),) | ||
528 | CFLAGS += -DHAVE_LIBBFD_SUPPORT | ||
529 | endif | ||
530 | |||
531 | # Among the variables below, these: | 533 | # Among the variables below, these: |
532 | # perfexecdir | 534 | # perfexecdir |
533 | # template_dir | 535 | # template_dir |