Skip to content

Commit 37b4e20

Browse files
Zubair Lutfullah Kakakhelacmel
authored andcommitted
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>
1 parent e7ee404 commit 37b4e20

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎tools/perf/Makefile.perf‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ $(call allow-override,CC,$(CROSS_COMPILE)gcc)
139139
$(call allow-override,AR,$(CROSS_COMPILE)ar)
140140
$(call allow-override,LD,$(CROSS_COMPILE)ld)
141141

142+
LD += $(EXTRA_LDFLAGS)
143+
142144
PKG_CONFIG = $(CROSS_COMPILE)pkg-config
143145

144146
RM = rm -f

0 commit comments

Comments
 (0)