lkml.org 
[lkml]   [2013]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] perf, tools: Fix bfd link on opensuse
Date
From: Andi Kleen <ak@linux.intel.com>

My opensuse libbfd requires libz and libiberty. perf
was not adding that for the bfd check, so the bfd
check was always failing.

Always add -lz and -liberty to BFD

Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
tools/perf/config/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
index 40a41c6..ec94f59 100644
--- a/tools/perf/config/Makefile
+++ b/tools/perf/config/Makefile
@@ -360,10 +360,10 @@ else
endif
endif

-FLAGS_BFD=$(CFLAGS) $(LDFLAGS) $(EXTLIBS) -DPACKAGE='perf' -lbfd
+FLAGS_BFD=$(CFLAGS) $(LDFLAGS) $(EXTLIBS) -DPACKAGE='perf' -lbfd -liberty -lz
has_bfd := $(call try-cc,$(SOURCE_BFD),$(FLAGS_BFD),libbfd)
ifeq ($(has_bfd),y)
- EXTLIBS += -lbfd
+ EXTLIBS += -lbfd -liberty -lz
CFLAGS += -DLIBBFD_SUPPORT
endif

--
1.8.3.1


\
 
 \ /
  Last update: 2013-10-20 15:01    [W:0.069 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site