[poky] Library paths for Makefile based recipes

Darren Hart dvhart at linux.intel.com
Thu Dec 30 08:32:54 PST 2010


On 12/30/2010 03: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 tried that first, it led to loads of cross-compilation errors. I 
didn't investigate much further as explicitly setting CC, AR, etc for 
oe_runmake resolved the issue.

-- 
Darren Hart
Yocto Linux Kernel



More information about the poky mailing list