perf_counter tools: Fix link errors with older toolchains
Commit-ID: 2d1b6949d2c855f195de0f5146625015ecca3944 Gitweb: http://git.kernel.org/tip/2d1b6949d2c855f195de0f5146625015ecca3944 Author: Ingo Molnar <[email protected]> AuthorDate: Sat, 1 Aug 2009 13:15:36 +0200 Committer: Ingo Molnar <[email protected]> CommitDate: Sat, 1 Aug 2009 13:15:36 +0200
perf_counter tools: Fix link errors with older toolchains
On older distros (F8 for example) the perf build could fail with such missing symbols:
LINK perf
/usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../lib64/libbfd.a(bfd.o): In function `bfd_demangle':
(.text+0x2b3): undefined reference to cplus_demangle' /usr/lib/gcc/x86_64-redhat-linux/4.3.2/../../../../lib64/libbfd.a(bfd.o): In function bfd_demangle':
Link in -liberty too.
Cc: Peter Zijlstra <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
LKML-Reference: <new-submission>
Signed-off-by Ingo Molnar <[email protected]>
--- tools/perf/Makefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
tools/perf/Makefile +1 -1
@@ -345,7 +345,7 @@ BUILTIN_OBJS += builtin-stat.o BUILTIN_OBJS += builtin-top.o PERFLIBS = $(LIB_FILE) -EXTLIBS = -lbfd +EXTLIBS = -lbfd -liberty # # Platform specific tweaks