distutils.bbclass: override LDSHARED so we use the linker for this build and not the one used in sstate-cache

Without this fix, when packages are being built using distutils and
the python packages were deployed from sstate-cache is it possible
that the LD command will contain an invalid sysroot override.

We can fix this by always exported LDSHARED, which is the env var
that distutil looks for to override creating shared libraries.

(From OE-Core rev: 3f6b859a29ba7f570b9dae3b5bb7ab4bd7b8cee4)

Signed-off-by: Matthew McClintock <msm@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Matthew McClintock 2012-02-08 15:06:54 -06:00 committed by Richard Purdie
parent c6ec5a0d9e
commit 69a3fba2aa
1 changed files with 2 additions and 0 deletions

View File

@ -72,3 +72,5 @@ distutils_do_install() {
}
EXPORT_FUNCTIONS do_compile do_install
export LDSHARED="${CCLD} -shared"