Received: by 10.213.65.68 with SMTP id h4csp3469776imn; Mon, 9 Apr 2018 22:35:31 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+L5QNVnB7lurguTt81QUYnlOFDeJGHm6OEc3ATZGpjMeHTwRRdGJid5/0DJw25OHNYugyD X-Received: by 2002:a17:902:6807:: with SMTP id h7-v6mr8761967plk.90.1523338531898; Mon, 09 Apr 2018 22:35:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523338531; cv=none; d=google.com; s=arc-20160816; b=i+te2PPhWPtbqaH1mQlzBEDyN7zsPstMbLyR3axOd6IAbWjgsOlEStLu7xF64lgDzv 8A/OQlWpaWP1xRBxbpPjI6t9jRFIZUXoitpq/C86AJi/ryOlvoknXnDIMY6FUFVXdVBl aD3FlUvv8ifcU16A7CQ0s3mJm+LTmOT91TFoHWK94JUrWiTrQVO2AWmE6jdVh8wFwUIB Pdf4v8fzk+uxDiQ2FiewMI9KJDyTTh+oxwIfufWmgb8RtB6w7WT8lITt7aDkC24PwDyj UqptGzxjrNGh6HCYah/SlEn35Gjb/A5cCdh8E9xFZ0KIZwX2G7caMkX7lGpHSXz9wT9a inwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=Ohznlgem78t0Br4nlgiYC2yzpR+DB4c4Kkmbg9RKX5w=; b=KW5tB+55HlA3CaSzDwlBBqEpRD7x72QB01fJsbAfxyGByIHZxXJExpz7Lu0AzUtZCG /54jOxma32m8WVI3Ic4xCxqCtbXrzw+gqgwD/1CaC2sAEd/g40Md483OPbRCQkSVQvBK 3+dtogwhNEztPedlYgSVSssKwz1IYkPB0SwifdwFQj8smp17kaHuJSDPpvoHZtOnBoGG Bv/GZJ5nbuX0nCaLZ6UhtPGn2GkzAsNTcJqhXJXZdy4FM2QTdfVvOtJXO+4ATuFsizTm PA1OTS3wOh4qfIr2JXkbBeu9/UEyW47pI36leGYetD14G7s35q+16qNck4jVfeX1RH8j 1bNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o33-v6si1842198plb.594.2018.04.09.22.34.54; Mon, 09 Apr 2018 22:35:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752486AbeDJFaZ (ORCPT + 99 others); Tue, 10 Apr 2018 01:30:25 -0400 Received: from terminus.zytor.com ([198.137.202.136]:38037 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751796AbeDJFaY (ORCPT ); Tue, 10 Apr 2018 01:30:24 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w3A5UG3W2096788; Mon, 9 Apr 2018 22:30:16 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w3A5UGEA2096785; Mon, 9 Apr 2018 22:30:16 -0700 Date: Mon, 9 Apr 2018 22:30:16 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Sandipan Das Message-ID: Cc: linux-kernel@vger.kernel.org, acme@redhat.com, hpa@zytor.com, jolsa@redhat.com, tglx@linutronix.de, mingo@kernel.org, naveen.n.rao@linux.vnet.ibm.com, sandipan@linux.vnet.ibm.com Reply-To: sandipan@linux.vnet.ibm.com, naveen.n.rao@linux.vnet.ibm.com, mingo@kernel.org, tglx@linutronix.de, jolsa@redhat.com, hpa@zytor.com, acme@redhat.com, linux-kernel@vger.kernel.org In-Reply-To: <20180404180419.19056-1-sandipan@linux.vnet.ibm.com> References: <20180404180419.19056-1-sandipan@linux.vnet.ibm.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf tools: Fix perf builds with clang support Git-Commit-ID: c2fb54a183cfe77c6fdc9d71e2d5299c1c302a6e X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: c2fb54a183cfe77c6fdc9d71e2d5299c1c302a6e Gitweb: https://git.kernel.org/tip/c2fb54a183cfe77c6fdc9d71e2d5299c1c302a6e Author: Sandipan Das AuthorDate: Wed, 4 Apr 2018 23:34:17 +0530 Committer: Arnaldo Carvalho de Melo CommitDate: Mon, 9 Apr 2018 11:13:07 -0300 perf tools: Fix perf builds with clang support For libclang, some distro packages provide static libraries (.a) while some provide shared libraries (.so). Currently, perf code can only be linked with static libraries. This makes perf build possible for both cases. Signed-off-by: Sandipan Das Cc: Jiri Olsa Cc: Naveen N. Rao Fixes: d58ac0bf8d1e ("perf build: Add clang and llvm compile and linking support") Link: http://lkml.kernel.org/r/20180404180419.19056-1-sandipan@linux.vnet.ibm.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/Makefile.perf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index f7517e1b73f8..83e453de36f8 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -364,7 +364,8 @@ LIBS = -Wl,--whole-archive $(PERFLIBS) $(EXTRA_PERFLIBS) -Wl,--no-whole-archive ifeq ($(USE_CLANG), 1) CLANGLIBS_LIST = AST Basic CodeGen Driver Frontend Lex Tooling Edit Sema Analysis Parse Serialization - LIBCLANG = $(foreach l,$(CLANGLIBS_LIST),$(wildcard $(shell $(LLVM_CONFIG) --libdir)/libclang$(l).a)) + CLANGLIBS_NOEXT_LIST = $(foreach l,$(CLANGLIBS_LIST),$(shell $(LLVM_CONFIG) --libdir)/libclang$(l)) + LIBCLANG = $(foreach l,$(CLANGLIBS_NOEXT_LIST),$(wildcard $(l).a $(l).so)) LIBS += -Wl,--start-group $(LIBCLANG) -Wl,--end-group endif