From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422871AbbD2LRI (ORCPT ); Wed, 29 Apr 2015 07:17:08 -0400 Received: from e23smtp02.au.ibm.com ([202.81.31.144]:51778 "EHLO e23smtp02.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422691AbbD2LRE (ORCPT ); Wed, 29 Apr 2015 07:17:04 -0400 From: "Naveen N. Rao" To: acme@kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] perf build: Disable libdw DWARF unwind when built with NO_DWARF Date: Wed, 29 Apr 2015 16:45:31 +0530 Message-Id: <1430306131-6780-1-git-send-email-naveen.n.rao@linux.vnet.ibm.com> X-Mailer: git-send-email 2.3.5 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15042911-0005-0000-0000-000001B643FA Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get a linker error if we try to build with NO_DWARF since we build util/unwind-libdw.c, but do not include -ldw Signed-off-by: Naveen N. Rao --- tools/perf/config/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile index 59a98c6..d47c4dc 100644 --- a/tools/perf/config/Makefile +++ b/tools/perf/config/Makefile @@ -268,6 +268,10 @@ else endif # libelf support endif # NO_LIBELF +ifdef NO_DWARF + NO_LIBDW_DWARF_UNWIND := 1 +endif + ifndef NO_LIBELF CFLAGS += -DHAVE_LIBELF_SUPPORT EXTLIBS += -lelf -- 2.3.5