Skip to contentSkip to conversation

perf, tools: Fix bfd link on opensuse

PATCH New Andi Kleen 1 participant 1 message Oct 20, 2013 perf events

lore
Share & tools
lore

Andi Kleen

author
#0 lore raw

PATCH 1/1 perf, tools: Fix bfd link on opensuse

From: Andi Kleen <[email protected]>

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

---
 tools/perf/config/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/perf/config/Makefile +2 -2
index 40a41c6..ec94f59 100644
@@ -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
 
Signature · 1 line
1.8.3.1