From c484ab103fe93254f4a6af7f63275febe607d88b Mon Sep 17 00:00:00 2001 From: Chih-Wei Huang Date: Thu, 25 May 2017 17:16:50 +0800 Subject: [PATCH 1/1] android: use ld.bfd instead of ld.gold We build the kernel with android toolchain. But kernel needs ld.bfd to be linked correctly. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 714bfb4dd630..cd182d7f7100 100644 --- a/Makefile +++ b/Makefile @@ -345,7 +345,7 @@ include scripts/Kbuild.include # Make variables (CC, etc...) AS = $(CROSS_COMPILE)as -LD = $(CROSS_COMPILE)ld +LD = $(CROSS_COMPILE)ld$(if $(wildcard $(lastword $(CROSS_COMPILE))ld.bfd),.bfd) CC = $(CROSS_COMPILE)gcc CPP = $(CC) -E AR = $(CROSS_COMPILE)ar -- 2.11.0