perf tools: bfd.h/libbfd detection fails with recent binutils
authorMarkus Trippelsdorf <[email protected]>
Wed, 19 Sep 2012 07:29:02 +0000 (09:29 +0200)
committerArnaldo Carvalho de Melo <[email protected]>
Mon, 24 Sep 2012 15:05:02 +0000 (12:05 -0300)
commit3ce711a6abc27abce1554e1d671a8762b7187690
tree0ccfb37a81b6042fdfa5ddf56caf1c0cc30511a3
parent70d9304475730a63dd8da884abc7c76ee4772cd2
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 <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Mike Frysinger <[email protected]>
Cc: Paul Mackerras <[email protected]>
Link: http://lkml.kernel.org/r/20120919072902.GA262@x4
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/Makefile
tools/perf/util/symbol.h