All of lore.kernel.org
 help / color / mirror / Atom feed
From: tip-bot for Zubair Lutfullah Kakakhel <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: tglx@linutronix.de, mingo@kernel.org, acme@redhat.com,
	Zubair.Kakakhel@imgtec.com, linux-kernel@vger.kernel.org,
	peterz@infradead.org, hpa@zytor.com
Subject: [tip:perf/core] perf build: Add EXTRA_LDFLAGS option to makefile
Date: Mon, 15 Feb 2016 23:52:26 -0800	[thread overview]
Message-ID: <tip-37b4e2020a5f4dbecf22ee3efe92de6dbea1c5f0@git.kernel.org> (raw)
In-Reply-To: <1455024818-15842-1-git-send-email-Zubair.Kakakhel@imgtec.com>

Commit-ID:  37b4e2020a5f4dbecf22ee3efe92de6dbea1c5f0
Gitweb:     http://git.kernel.org/tip/37b4e2020a5f4dbecf22ee3efe92de6dbea1c5f0
Author:     Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
AuthorDate: Tue, 9 Feb 2016 13:33:38 +0000
Committer:  Arnaldo Carvalho de Melo <acme@redhat.com>
CommitDate: Fri, 12 Feb 2016 11:30:20 -0300

perf build: Add EXTRA_LDFLAGS option to makefile

To compile for little-endian systems, you need to pass -EL to CC and LD.

EXTRA_CFLAGS works to pass -EL to CC.
Add EXTRA_LDFLAGS to pass -EL to LD.

Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1455024818-15842-1-git-send-email-Zubair.Kakakhel@imgtec.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/perf/Makefile.perf | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
index d404117..4a4fad4 100644
--- a/tools/perf/Makefile.perf
+++ b/tools/perf/Makefile.perf
@@ -139,6 +139,8 @@ $(call allow-override,CC,$(CROSS_COMPILE)gcc)
 $(call allow-override,AR,$(CROSS_COMPILE)ar)
 $(call allow-override,LD,$(CROSS_COMPILE)ld)
 
+LD += $(EXTRA_LDFLAGS)
+
 PKG_CONFIG = $(CROSS_COMPILE)pkg-config
 
 RM      = rm -f

      parent reply	other threads:[~2016-02-16  7:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-09 13:33 [RFC] perf build: Add EXTRA_LDFLAGS option to makefile Zubair Lutfullah Kakakhel
2016-02-11 22:17 ` Arnaldo Carvalho de Melo
2016-02-16  7:52 ` tip-bot for Zubair Lutfullah Kakakhel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tip-37b4e2020a5f4dbecf22ee3efe92de6dbea1c5f0@git.kernel.org \
    --to=tipbot@zytor.com \
    --cc=Zubair.Kakakhel@imgtec.com \
    --cc=acme@redhat.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=peterz@infradead.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.