Re: [PATCH] tools lib api: respect CROSS_COMPILE for the linker

From: Lucas Stach
Date: Wed Jun 01 2016 - 05:18:37 EST


Am Donnerstag, den 17.03.2016, 18:27 +0100 schrieb Lucas Stach:
> This fixes cross compilation of libapi.
>
> Signed-off-by: Lucas Stach <l.stach@xxxxxxxxxxxxxx>

There has been a fair amount of discussion going on in reply to this
patch, most of which had more general nature and didn't really discuss
the content of this patch.

Unfortunately it hasn't been applied, leaving the current mainline
unable to cross compile libapi. Can we please apply this patch to fix
this?

Thanks,
Lucas

> ---
> tools/lib/api/Makefile | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tools/lib/api/Makefile b/tools/lib/api/Makefile
> index d85904dc9b38..9383bb866664 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
>