On Wed, Sep 12, 2012 at 2:56 AM, Björn Stenberg <b...@enea.com> wrote:
> I couldn't figure out where to properly patch this, so I'll just raise the 
> issue:
>
> LDFLAGS is configured in bitbake.conf as linker flags to be passed to gcc, 
> not to ld. Hence it uses the -Wl prefix.
>
> The linux kernel build system inherits LDFLAGS from the environment and 
> passes it directly to 'ld', in conflict with the bitbake view. This problem 
> is avoided by clearing LDFLAGS and some other enviroment variables in 
> kernel.bbclass:kernel_do_compile().
>
> However this clearing is not done for do_devshell, resulting in errors when 
> trying to compile the kernel in devshell:

We could unexport the appropriate variables rather than unsetting them
in the task.
E.g.
LDFLAGS[unexport] = "1"
-- 
Christopher Larson

_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to