Skip to contentSkip to conversation

tools/liblockdep: Fix linker error in case of cross compile.

PATCH Applied Eunbong Song 2 participants 2 messages Apr 24, 2015 – Apr 26, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/liblockdep: Fix linker error in case of cross compile.

If we try to cross compile liblockdep, even if we set the CROSS_COMPILE variable the linker error can occur because LD is not set with CROSS_COMPILE. This patch adds "LD" can be set automatically with CROSS_COMPILE variable so fixes linker error problem.

---
 tools/lib/lockdep/Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
tools/lib/lockdep/Makefile +2 -1
index 0c356fb..18ffccf 100644
@@ -14,9 +14,10 @@ define allow-override
     $(eval $(1) = $(2)))
 endef
 
-# Allow setting CC and AR, or setting CROSS_COMPILE as a prefix.
+# Allow setting CC and AR and LD, or setting CROSS_COMPILE as a prefix.
 $(call allow-override,CC,$(CROSS_COMPILE)gcc)
 $(call allow-override,AR,$(CROSS_COMPILE)ar)
+$(call allow-override,LD,$(CROSS_COMPILE)ld)
 
 INSTALL = install
 
Signature · 3 lines
1.7.0.1

�淸�{.n�+돴윯돪�+%듚�깁負쪐w��{.n�+돴쪐{깸G쳺��{ay����,j�f"톒쉹��묎�z_溫(�쉸듶줷"얎�m����G쳺�◀?솳鈺�&x�~뤳턨O뺞촾퇉v�^�m����띠�◀?뻀�
Applied
#1 lore raw
Quoted 7 lines · Eunbong Song

If we try to cross compile liblockdep, even if we set the CROSS_COMPILE variable the linker error can occur because LD is not set with CROSS_COMPILE. This patch adds "LD" can be set automatically with CROSS_COMPILE variable so fixes linker error problem.

Applied, thanks.

Thanks,
Sasha