Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp45911imu; Thu, 20 Dec 2018 16:36:23 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vd66OpPdb2KB3C2r4AbDvLzkJJFU6oS/nyBvl1WDkYgHqDaZLoovXchAAohIXk+wtL36fX X-Received: by 2002:a62:d2c1:: with SMTP id c184mr358645pfg.248.1545352583238; Thu, 20 Dec 2018 16:36:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545352582; cv=none; d=google.com; s=arc-20160816; b=r0D4NYgJC7AgDq5Fh7Ydf3m7lB4IhC3m1UTYsdC1qeyyPak7uaX3ngUYQnTPfmGU50 sbcTqZqbLCAukmWq8DyoDb/2xIpUWgemdwdUz55ljbiyXNleuZa4A1GXwsSd0+NuBU4U hvPQW6tcfHxDwtrtZPj0m5jZAPbRFmq3DoRpq6ZqlzebBcxzi+6aiHr5AW+tndBzWkMv Ur9oex3rW79+uVA78sbYYKdVDqsuyNZG59epbi4PUdxM6VXX5lahrpobnVhKe0R6i0hb shO4T08lSSXBb1RKLjrwH6O3oPzlTNX1yih+mu3nGCBg6eYtgnet1s0NowatX5Awyi/N 9OdA== 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; bh=qpw6eqFCp6OiAJ9+ZMtNuZLUhpYLTT3Rs1+SqcXpM2w=; b=AjSUdfTGgQ+W6CPlp0MIs7HOEgDTYpIXWvYKublCvYX6vcKSM4uyff06hlFabobyVD jizrCIwYEolb9v4k3Arc6tZXIcFtC4XuJeLKc1AxBvlaZ8QU/2Gad2PKY/u4FFfPWgNk vOZi8DI9KGGjlXAPk4BVkwdleLIUQ8/msqfT4DNrHvdk3NDREHj+nW79YW1E97Y7UY1d TSRYuyWgAI0j3TUgZjv6yZr0gYUxbg/EboE+0KgJPjQTIpcnbZZhsTCAGwKVQgf82oDa G8Ftu7K5RMna4l9EJq3zEKIxF0XkEZ6uUO2V8AicEG+ezSacupeCheCVs5hh3DNvGrrA OiOQ== 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 c13si1331199pgi.531.2018.12.20.16.36.07; Thu, 20 Dec 2018 16:36:22 -0800 (PST) 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 S2388533AbeLTSHx (ORCPT + 99 others); Thu, 20 Dec 2018 13:07:53 -0500 Received: from terminus.zytor.com ([198.137.202.136]:53591 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729637AbeLTSHx (ORCPT ); Thu, 20 Dec 2018 13:07:53 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id wBKI7j5O3681407 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 20 Dec 2018 10:07:45 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id wBKI7im73681404; Thu, 20 Dec 2018 10:07:44 -0800 Date: Thu, 20 Dec 2018 10:07:44 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Jiri Olsa Message-ID: Cc: mingo@kernel.org, tz.stoyanov@gmail.com, herton@redhat.com, tglx@linutronix.de, acme@redhat.com, jolsa@redhat.com, hpa@zytor.com, jolsa@kernel.org, linux-kernel@vger.kernel.org, rostedt@goodmis.org Reply-To: acme@redhat.com, tglx@linutronix.de, rostedt@goodmis.org, linux-kernel@vger.kernel.org, jolsa@kernel.org, hpa@zytor.com, jolsa@redhat.com, herton@redhat.com, tz.stoyanov@gmail.com, mingo@kernel.org In-Reply-To: <20181212091214.GC17489@krava> References: <20181212091214.GC17489@krava> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] tools lib traceevent: Use LDFLAGS in the build commands Git-Commit-ID: 41fa483aeee567cc34f9fc4c2e7035f2df25299d 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=-0.8 required=5.0 tests=ALL_TRUSTED,BAYES_00, FREEMAIL_FORGED_REPLYTO autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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: 41fa483aeee567cc34f9fc4c2e7035f2df25299d Gitweb: https://git.kernel.org/tip/41fa483aeee567cc34f9fc4c2e7035f2df25299d Author: Jiri Olsa AuthorDate: Wed, 12 Dec 2018 10:12:14 +0100 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 18 Dec 2018 12:23:57 -0300 tools lib traceevent: Use LDFLAGS in the build commands So that the user can specify outside LDFLAGS values. Keeping the CFLAGS in there as well, so we don't break existing scripts. Signed-off-by: Jiri Olsa Acked-by: Steven Rostedt (VMware) Cc: Herton Krzesinski Cc: Tzvetomir Stoyanov (VMware) Link: http://lkml.kernel.org/r/20181212091214.GC17489@krava Signed-off-by: Arnaldo Carvalho de Melo --- tools/lib/traceevent/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile index 67fe5d7ef190..941761d9923d 100644 --- a/tools/lib/traceevent/Makefile +++ b/tools/lib/traceevent/Makefile @@ -177,7 +177,7 @@ $(TE_IN): force $(Q)$(MAKE) $(build)=libtraceevent $(OUTPUT)libtraceevent.so.$(EVENT_PARSE_VERSION): $(TE_IN) - $(QUIET_LINK)$(CC) --shared $^ -Wl,-soname,libtraceevent.so.$(EP_VERSION) -o $@ + $(QUIET_LINK)$(CC) --shared $(LDFLAGS) $^ -Wl,-soname,libtraceevent.so.$(EP_VERSION) -o $@ @ln -sf $(@F) $(OUTPUT)libtraceevent.so @ln -sf $(@F) $(OUTPUT)libtraceevent.so.$(EP_VERSION) @@ -196,7 +196,7 @@ $(PLUGINS_IN): force $(Q)$(MAKE) $(build)=$(plugin_obj) $(OUTPUT)%.so: $(OUTPUT)%-in.o - $(QUIET_LINK)$(CC) $(CFLAGS) -shared -nostartfiles -o $@ $^ + $(QUIET_LINK)$(CC) $(CFLAGS) -shared $(LDFLAGS) -nostartfiles -o $@ $^ define make_version.h (echo '/* This file is automatically generated. Do not modify. */'; \