From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946392AbbHGWS5 (ORCPT ); Fri, 7 Aug 2015 18:18:57 -0400 Received: from mga03.intel.com ([134.134.136.65]:2307 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1946271AbbHGWS4 (ORCPT ); Fri, 7 Aug 2015 18:18:56 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,631,1432623600"; d="scan'208";a="779158806" From: Andi Kleen To: acme@kernel.org Cc: linux-kernel@vger.kernel.org, jolsa@redhat.com, Andi Kleen Subject: [PATCH] perf, tools: Support static linking with libdw Date: Fri, 7 Aug 2015 15:18:48 -0700 Message-Id: <1438985928-14457-1-git-send-email-andi@firstfloor.org> X-Mailer: git-send-email 2.4.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andi Kleen The Fedora 22 version of libdw requires a couple of extra libraries to link. With a dynamic link the dependencies are pulled in automatically, but this doesn't work for static linking. Add the needed libraries explicitely to the feature probe and the Makefile. Signed-off-by: Andi Kleen --- tools/build/feature/Makefile | 2 +- tools/perf/config/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/build/feature/Makefile b/tools/build/feature/Makefile index 463ed8f..179fc1a 100644 --- a/tools/build/feature/Makefile +++ b/tools/build/feature/Makefile @@ -70,7 +70,7 @@ test-glibc.bin: $(BUILD) test-dwarf.bin: - $(BUILD) -ldw + $(BUILD) -ldw -lelf -lebl -lz -llzma -lbz2 test-libelf-mmap.bin: $(BUILD) -lelf diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index 094ddae..384e0a6 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile @@ -297,7 +297,7 @@ ifndef NO_LIBELF else CFLAGS += -DHAVE_DWARF_SUPPORT $(LIBDW_CFLAGS) LDFLAGS += $(LIBDW_LDFLAGS) - EXTLIBS += -ldw + EXTLIBS += -ldw -lelf -lebl -lz -lbz2 -llzma $(call detected,CONFIG_DWARF) endif # PERF_HAVE_DWARF_REGS endif # NO_DWARF -- 2.4.3