[tip:perf/core] tools lib api: Respect CROSS_COMPILE for the linker

From: tip-bot for Lucas Stach
Date: Wed Jun 08 2016 - 04:37:57 EST


Commit-ID: 703e01652d25edbd249e3043c26543157f0ef15c
Gitweb: http://git.kernel.org/tip/703e01652d25edbd249e3043c26543157f0ef15c
Author: Lucas Stach <l.stach@xxxxxxxxxxxxxx>
AuthorDate: Thu, 17 Mar 2016 18:27:50 +0100
Committer: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
CommitDate: Fri, 3 Jun 2016 14:53:46 -0300

tools lib api: Respect CROSS_COMPILE for the linker

This fixes cross compilation of libapi.

Signed-off-by: Lucas Stach <l.stach@xxxxxxxxxxxxxx>
Cc: Jiri Olsa <jolsa@xxxxxxxxxx>
Cc: kernel@xxxxxxxxxxxxxx
Cc: patchwork-lst@xxxxxxxxxxxxxx
Link: http://lkml.kernel.org/r/1458235670-27341-1-git-send-email-l.stach@xxxxxxxxxxxxxx
Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
---
tools/lib/api/Makefile | 1 +
1 file changed, 1 insertion(+)

diff --git a/tools/lib/api/Makefile b/tools/lib/api/Makefile
index 316f308..67ff93e 100644
--- a/tools/lib/api/Makefile
+++ b/tools/lib/api/Makefile
@@ -10,6 +10,7 @@ endif

CC = $(CROSS_COMPILE)gcc
AR = $(CROSS_COMPILE)ar
+LD = $(CROSS_COMPILE)ld

MAKEFLAGS += --no-print-directory