[OE-core] Bug: LDFLAGS is not cleared for kernel devshell

Chris Larson clarson at kergoth.com
Wed Sep 12 13:33:50 UTC 2012


On Wed, Sep 12, 2012 at 2:56 AM, Björn Stenberg <bjst at 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




More information about the Openembedded-core mailing list