From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx1.pokylinux.org (Postfix) with ESMTP id BE39B4C8110E for ; Thu, 30 Dec 2010 10:33:22 -0600 (CST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 30 Dec 2010 08:33:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.60,250,1291622400"; d="scan'208";a="692018165" Received: from unknown (HELO [10.255.13.220]) ([10.255.13.220]) by orsmga001.jf.intel.com with ESMTP; 30 Dec 2010 08:33:22 -0800 Message-ID: <4D1CB456.5030402@linux.intel.com> Date: Thu, 30 Dec 2010 08:33:26 -0800 From: Darren Hart User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: Chris Larson References: <4D1A8103.2030501@linux.intel.com> <4D1A879E.6060702@linux.intel.com> <1293708069.17519.10063.camel@rex> In-Reply-To: Cc: "poky@yoctoproject.org" Subject: Re: Library paths for Makefile based recipes X-BeenThere: poky@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Poky build system developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Dec 2010 16:33:22 -0000 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/30/2010 06:11 AM, Chris Larson wrote: > On Thu, Dec 30, 2010 at 4:21 AM, Richard Purdie > wrote: >> On Tue, 2010-12-28 at 16:58 -0800, Darren Hart wrote: >>> Turns out the project Makefile is doing this: >>> >>> CC = $(CROSS_COMPILE)gcc >>> AR = $(CROSS_COMPILE)ar >>> >>> Removing those lines from the Makefile allows the project to build. >> >> You could also set CROSS_COMPILE to the right value (TARGET_PREFIX?) and >> things should work. This looks very similar to how we cross compile the >> kernel. > > I'm not familiar with this particular project, but unless it's bare > metal or nearly so like a kernel or bootloader, that's likely not a > good idea, since it won't end up obeying our TARGET_CC_ARCH. An > alternative to setting CC/AR in EXTRA_OEMAKE or removing those lines > from the makefile would be to set them there, but using ?=. This > would let the versions in the environment be used in preference to > those. I'll ask Steven if he'd accept such a change. -- Darren Hart Yocto Linux Kernel