tip-bot for Markus Trippelsdorf
unread,Sep 27, 2012, 1:40:51 AM9/27/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to linux-ti...@vger.kernel.org, ac...@redhat.com, linux-...@vger.kernel.org, pau...@samba.org, mi...@redhat.com, h...@zytor.com, mi...@kernel.org, mar...@trippelsdorf.de, vap...@gentoo.org, tg...@linutronix.de
Commit-ID: 3ce711a6abc27abce1554e1d671a8762b7187690
Gitweb:
http://git.kernel.org/tip/3ce711a6abc27abce1554e1d671a8762b7187690
Author: Markus Trippelsdorf <
mar...@trippelsdorf.de>
AuthorDate: Wed, 19 Sep 2012 09:29:02 +0200
Committer: Arnaldo Carvalho de Melo <
ac...@redhat.com>
CommitDate: Mon, 24 Sep 2012 12:05:02 -0300
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:
Cc: Ingo Molnar <
mi...@redhat.com>
Cc: Mike Frysinger <
vap...@gentoo.org>
Cc: Paul Mackerras <
pau...@samba.org>
Link:
http://lkml.kernel.org/r/20120919072902.GA262@x4
Signed-off-by: Arnaldo Carvalho de Melo <
ac...@redhat.com>
---
tools/perf/Makefile | 2 +-
tools/perf/util/symbol.h | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 3ae6a59..251dcd7 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -715,7 +715,7 @@ else
EXTLIBS += -liberty
BASIC_CFLAGS += -DHAVE_CPLUS_DEMANGLE
else
- FLAGS_BFD=$(ALL_CFLAGS) $(ALL_LDFLAGS) $(EXTLIBS) -lbfd
+ FLAGS_BFD=$(ALL_CFLAGS) $(ALL_LDFLAGS) $(EXTLIBS) -DPACKAGE='perf' -lbfd
has_bfd := $(call try-cc,$(SOURCE_BFD),$(FLAGS_BFD))
ifeq ($(has_bfd),y)
EXTLIBS += -lbfd
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h
index 4ff45e3..b441b07 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,
return NULL;
}
#else
+#define PACKAGE 'perf'
#include <bfd.h>
#endif
#endif
--