From eec15cc85275d8b9fca5a123822e8140c803e5e6 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Tue, 5 Jul 2011 20:13:40 -0400 Subject: [PATCH] UBUNTU: SAUCE: perf: Link libbfd statically The binutils-dev package description forbids Debian packages from linking libbfd dynamically, because that would lead to very strict versioned dependencies, so that frequent rebuilds are required to keep every package in sync with current binutils. It would also make it impossible to install multiple versions of linux-tools linked against different binutils versions. BugLink: https://bugs.launchpad.net/bugs/783660 Signed-off-by: Anders Kaseorg --- tools/perf/Makefile | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 940257b..67f77c5 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile @@ -564,7 +564,8 @@ else EXTLIBS += -liberty BASIC_CFLAGS += -DHAVE_CPLUS_DEMANGLE else - FLAGS_BFD=$(ALL_CFLAGS) $(ALL_LDFLAGS) $(EXTLIBS) -lbfd + LIBBFD := $(shell $(CC) -print-file-name=libbfd.a) + FLAGS_BFD=$(ALL_CFLAGS) $(ALL_LDFLAGS) $(EXTLIBS) $(LIBBFD) has_bfd := $(call try-cc,$(SOURCE_BFD),$(FLAGS_BFD)) ifeq ($(has_bfd),y) EXTLIBS += -lbfd -- 1.7.6