All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools/liblockdep: Fix linker error in case of cross compile.
@ 2015-04-24  4:36 Eunbong Song
  2015-04-26  2:55 ` Sasha Levin
  0 siblings, 1 reply; 2+ messages in thread
From: Eunbong Song @ 2015-04-24  4:36 UTC (permalink / raw)
  To: sasha.levin; +Cc: linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=euc-kr, Size: 1118 bytes --]


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.

Signed-off-by: Eunbong Song <eunb.song@samsung.com>
---
 tools/lib/lockdep/Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tools/lib/lockdep/Makefile b/tools/lib/lockdep/Makefile
index 0c356fb..18ffccf 100644
--- a/tools/lib/lockdep/Makefile
+++ b/tools/lib/lockdep/Makefile
@@ -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
 
-- 
1.7.0.1

ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] tools/liblockdep: Fix linker error in case of cross compile.
  2015-04-24  4:36 [PATCH] tools/liblockdep: Fix linker error in case of cross compile Eunbong Song
@ 2015-04-26  2:55 ` Sasha Levin
  0 siblings, 0 replies; 2+ messages in thread
From: Sasha Levin @ 2015-04-26  2:55 UTC (permalink / raw)
  To: eunb.song; +Cc: linux-kernel

On 04/24/2015 12:36 AM, Eunbong Song wrote:
> 
> 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.
> 
> Signed-off-by: Eunbong Song <eunb.song@samsung.com>

Applied, thanks.


Thanks,
Sasha


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-26  2:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-24  4:36 [PATCH] tools/liblockdep: Fix linker error in case of cross compile Eunbong Song
2015-04-26  2:55 ` Sasha Levin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.