Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752804AbbDXEga (ORCPT ); Fri, 24 Apr 2015 00:36:30 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:28345 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752713AbbDXEg3 (ORCPT ); Fri, 24 Apr 2015 00:36:29 -0400 X-AuditID: cbfee690-f796f6d000005054-8a-5539c84bf51d Date: Fri, 24 Apr 2015 04:36:27 +0000 (GMT) From: Eunbong Song Subject: [PATCH] tools/liblockdep: Fix linker error in case of cross compile. To: "sasha.levin@oracle.com" Cc: "linux-kernel@vger.kernel.org" Reply-to: eunb.song@samsung.com MIME-version: 1.0 X-MTR: 20150424043506078@eunb.song Msgkey: 20150424043506078@eunb.song X-EPLocale: ko_KR.euc-kr X-Priority: 3 X-EPWebmail-Msg-Type: personal X-EPWebmail-Reply-Demand: 0 X-EPApproval-Locale: X-EPHeader: ML X-MLAttribute: X-RootMTR: 20150424043506078@eunb.song X-ParentMTR: X-ArchiveUser: X-CPGSPASS: N X-ConfirmMail: N,general Content-type: text/plain; charset=euc-kr MIME-version: 1.0 Message-id: <506433899.29421429850187333.JavaMail.weblogic@ep2mlwas05c> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrKIsWRmVeSWpSXmKPExsVy+t8zXV3vE5ahBhd7LC0u75rD5sDo8XmT XABjFJdNSmpOZllqkb5dAlfGs7nd7AXLuCpenzrF0sDYwNXFyMkhJKAi0fL/OyOILSFgIrG/ dRYbhC0mceHeeiCbC6hmGaPE3zt7mWCKPrWcY4NonsMoseVzGojNIqAqsen9cxYQm01AW+LH gavMILawgK9ES8tKMFtEwFTizLsDYDXMAo4Sjy7fYYaYIy8x+fRldhCbV0BQ4uTMJywQu5Qk tn45xQYRV5aYvv071HESErOmX2CFsHklZrQ/haqXk5j2dQ0zhC0tcX7WBkaYZxZ/fwwV55c4 dnsH1C8CElPPHISqUZeY+e4nVJx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FaNoakFyQXFSeoWJXnFibnFpXrpecn7uJkZwKnq2ZAdjwwXrQ4wCHIxKPLwOsyxDhVgT y4orcw8xSnAwK4nwhh4CCvGmJFZWpRblxxeV5qQWH2I0BcbaRGYp0eR8YJrMK4k3NDYwNjS0 NDcwNTSyUBLn/X8uN0RIID2xJDU7NbUgtQimj4mDU6qBsYvdpS3qYmAJi9W+F7f1FDQOf/6d KmX09onftIvv2MRNFueFNb5rltrXUPz1xInvyzSZnJaetT8S9Gp5CRsHV3FDJu/zpVG5/+fF cEle+732/IodF6/+jm1wy/rjt7JDUCx6ZtTfc47pX5N0p5rz2Ou4dlXot8frGC+/eKd921Xp DU9bg+beVmIpzkg01GIuKk4EAG9PEd5bAwAA DLP-Filter: Pass X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id t3O4aec4031238 Content-Length: 1118 Lines: 31 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 --- 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?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?