[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1455024818-15842-1-git-send-email-Zubair.Kakakhel@imgtec.com>
Date: Tue, 9 Feb 2016 13:33:38 +0000
From: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@...tec.com>
To: <peterz@...radead.org>, <mingo@...hat.com>, <acme@...nel.org>
CC: <linux-kernel@...r.kernel.org>, <Zubair.Kakakhel@...tec.com>
Subject: [RFC] 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@...tec.com>
---
There might be a better way to add EXTRA_LDFLAGS to the makefile?
Can compile for little endian now using
make ARCH=mips CROSS_COMPILE=mips-mti-linux-gnu- EXTRA_CFLAGS=-EL
EXTRA_LDFLAGS=-EL
Based on v4.5-rc3
---
tools/perf/Makefile.perf | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
index 5d34815..617acc1 100644
--- a/tools/perf/Makefile.perf
+++ b/tools/perf/Makefile.perf
@@ -136,6 +136,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
--
1.9.1
Powered by blists - more mailing lists