diff options
| author | Markus Trippelsdorf <markus@trippelsdorf.de> | 2012-09-19 03:29:02 -0400 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-09-24 11:05:02 -0400 |
| commit | 3ce711a6abc27abce1554e1d671a8762b7187690 (patch) | |
| tree | 0ccfb37a81b6042fdfa5ddf56caf1c0cc30511a3 /tools/perf | |
| parent | 70d9304475730a63dd8da884abc7c76ee4772cd2 (diff) | |
perf tools: bfd.h/libbfd detection fails with recent binutils
With recent binutils I get:
perf % make
Makefile:668: No bfd.h/libbfd found, install binutils-dev[el]/zlib-static to gain symbol demanglin
That happens because bfd.h now contains:
I've reopened a bug in the hope that this check will be deleted:
http://sourceware.org/bugzilla/show_bug.cgi?id=14243
But in the meantime, the following patch fixes the problem
Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Paul Mackerras <paulus@samba.org>
Link: http://lkml.kernel.org/r/20120919072902.GA262@x4
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
| -rw-r--r-- | tools/perf/Makefile | 2 | ||||
| -rw-r--r-- | tools/perf/util/symbol.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 3ae6a59635c..251dcd7fb5a 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
| @@ -715,7 +715,7 @@ else | |||
| 715 | EXTLIBS += -liberty | 715 | EXTLIBS += -liberty |
| 716 | BASIC_CFLAGS += -DHAVE_CPLUS_DEMANGLE | 716 | BASIC_CFLAGS += -DHAVE_CPLUS_DEMANGLE |
| 717 | else | 717 | else |
| 718 | FLAGS_BFD=$(ALL_CFLAGS) $(ALL_LDFLAGS) $(EXTLIBS) -lbfd | 718 | FLAGS_BFD=$(ALL_CFLAGS) $(ALL_LDFLAGS) $(EXTLIBS) -DPACKAGE='perf' -lbfd |
| 719 | has_bfd := $(call try-cc,$(SOURCE_BFD),$(FLAGS_BFD)) | 719 | has_bfd := $(call try-cc,$(SOURCE_BFD),$(FLAGS_BFD)) |
| 720 | ifeq ($(has_bfd),y) | 720 | ifeq ($(has_bfd),y) |
| 721 | EXTLIBS += -lbfd | 721 | EXTLIBS += -lbfd |
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h index 4ff45e30c72..b441b07172b 100644 --- a/tools/perf/util/symbol.h +++ b/tools/perf/util/symbol.h | |||
| @@ -34,6 +34,7 @@ static inline char *bfd_demangle(void __maybe_unused *v, | |||
| 34 | return NULL; | 34 | return NULL; |
| 35 | } | 35 | } |
| 36 | #else | 36 | #else |
| 37 | #define PACKAGE 'perf' | ||
| 37 | #include <bfd.h> | 38 | #include <bfd.h> |
| 38 | #endif | 39 | #endif |
| 39 | #endif | 40 | #endif |
