perf build: Add EXTRA_LDFLAGS option to makefile
authorZubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
Tue, 9 Feb 2016 13:33:38 +0000 (13:33 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 12 Feb 2016 14:30:20 +0000 (11:30 -0300)
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

index d404117810a7fd0f3ae024e23cc81fb13e91326c..4a4fad4182f534f23550ca5ac1ed5d42000f9b08 100644 (file)
@@ -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