Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4922811ybg; Mon, 21 Oct 2019 17:08:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqynNOQqQAH7By50nX+OHtW7mtKLlhfVOSKjgJulGoPNO2O+XSmMs0g2YxU/+hQyENlGj9Gb X-Received: by 2002:a17:906:5bcf:: with SMTP id w15mr3497382ejs.84.1571702927122; Mon, 21 Oct 2019 17:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571702927; cv=none; d=google.com; s=arc-20160816; b=kf/jIzlcuyoo29puvsbPJobC1eAQZ913AmisqA0RgxKuRjFVVGHZhFj7W9bVianaco A7qhD/dRqJ+jEw7Nfcuzu7FcbaS4qkwUp8YjIWdVCm9yy3WiDU8/gC8Y/XdhuWnLh2Lp vvOgZ2EIx5UyxTfVkgu1e+6kHBeVG/cM9YI+Nc+OfwC/0KbxJMfZY5NT9eVBmmlSQtW+ UP9tlx+foBijkU/62syd2UenSi/unLbpOF3dCUzidasRLPOUxGGZOr928/VDcOSeKQ1n UBcQ6vkkoP7boyKYs5Tkfi5oToXdre4ZurjvEpeIqGOorJOqxxP3UMh18Lb6GOIRTayx saow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=DkqViiZckiwjvi7KwG0CHEPPX3kqfLiXXkPeYzvT828=; b=yTGgkZxy+CVZcO430MlyZhOu5/QqRKHUmRHIXFBIX/GgZg6lVH9hdTQCn7vizZdKqM 2xm8LpN98QDpMsUm3MSRw4zO28+U/tfT0j+WKnzN/O+o7Ya2AWaPNhbZU8fQfkwZoHro pEjk+z9Ed8hbNWBgACD9yWLDluhtij9qpB3n+YUzkyklqWnaMTs7OYLmHVGE2Khwb7jo j85zzcXVx726bSM28kRjJPujTs38cbq9ByrIjVzPRAjO2Ny2W9WKefRHyQHA6sA6xocD HPjkXlMQtEvFPRM/OQld86e2DxwRbP6tX7Tk5wqyTMQrn7X29VkYF1/QO1HZz9dmOdDv BC7w== 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 e12si7208009edj.70.2019.10.21.17.08.23; Mon, 21 Oct 2019 17:08:47 -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 S2387675AbfJVAF0 (ORCPT + 99 others); Mon, 21 Oct 2019 20:05:26 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:38895 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387566AbfJVAFZ (ORCPT ); Mon, 21 Oct 2019 20:05:25 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iMgwu-0003sg-Cc; Tue, 22 Oct 2019 01:18:52 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id D95351C03AB; Tue, 22 Oct 2019 01:18:51 +0200 (CEST) Date: Mon, 21 Oct 2019 23:18:51 -0000 From: "tip-bot2 for Jiri Olsa" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] libperf: Link static tests with libapi.a Cc: Jiri Olsa , Alexander Shishkin , Alexey Budankov , Andi Kleen , Jin Yao , Michael Petlan , Namhyung Kim , Peter Zijlstra , Stephane Eranian , Arnaldo Carvalho de Melo , Ingo Molnar , Borislav Petkov , linux-kernel@vger.kernel.org In-Reply-To: <20191017105918.20873-5-jolsa@kernel.org> References: <20191017105918.20873-5-jolsa@kernel.org> MIME-Version: 1.0 Message-ID: <157169993154.29376.8877690079613356165.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: 395e62cde10df64122d708c68baee64b1d1622fc Gitweb: https://git.kernel.org/tip/395e62cde10df64122d708c68baee64b1d1622fc Author: Jiri Olsa AuthorDate: Thu, 17 Oct 2019 12:59:12 +02:00 Committer: Arnaldo Carvalho de Melo CommitterDate: Sat, 19 Oct 2019 15:35:01 -03:00 libperf: Link static tests with libapi.a Both static and dynamic tests needs to link with libapi.a, because it's using its functions. Also include path for libapi includes. Signed-off-by: Jiri Olsa Cc: Alexander Shishkin Cc: Alexey Budankov Cc: Andi Kleen Cc: Jin Yao Cc: Michael Petlan Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lore.kernel.org/lkml/20191017105918.20873-5-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/lib/Makefile | 1 + tools/perf/lib/tests/Makefile | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/perf/lib/Makefile b/tools/perf/lib/Makefile index 0889c9c..0f23363 100644 --- a/tools/perf/lib/Makefile +++ b/tools/perf/lib/Makefile @@ -107,6 +107,7 @@ else endif LIBAPI = $(API_PATH)libapi.a +export LIBAPI $(LIBAPI): FORCE $(Q)$(MAKE) -C $(LIB_DIR) O=$(OUTPUT) $(OUTPUT)libapi.a diff --git a/tools/perf/lib/tests/Makefile b/tools/perf/lib/tests/Makefile index 1ee4e9b..a43cd08 100644 --- a/tools/perf/lib/tests/Makefile +++ b/tools/perf/lib/tests/Makefile @@ -16,13 +16,13 @@ all: include $(srctree)/tools/scripts/Makefile.include -INCLUDE = -I$(srctree)/tools/perf/lib/include -I$(srctree)/tools/include +INCLUDE = -I$(srctree)/tools/perf/lib/include -I$(srctree)/tools/include -I$(srctree)/tools/lib $(TESTS_A): FORCE - $(QUIET_LINK)$(CC) $(INCLUDE) $(CFLAGS) -o $@ $(subst -a,.c,$@) ../libperf.a + $(QUIET_LINK)$(CC) $(INCLUDE) $(CFLAGS) -o $@ $(subst -a,.c,$@) ../libperf.a $(LIBAPI) $(TESTS_SO): FORCE - $(QUIET_LINK)$(CC) $(INCLUDE) $(CFLAGS) -L.. -o $@ $(subst -so,.c,$@) -lperf + $(QUIET_LINK)$(CC) $(INCLUDE) $(CFLAGS) -L.. -o $@ $(subst -so,.c,$@) $(LIBAPI) -lperf all: $(TESTS_A) $(TESTS_SO)