]> code.ossystems Code Review - openembedded-core.git/commitdiff
distutils.bbclass: override LDSHARED so we use the linker for this build and not...
authorMatthew McClintock <msm@freescale.com>
Wed, 8 Feb 2012 21:06:54 +0000 (15:06 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Feb 2012 13:36:55 +0000 (13:36 +0000)
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.

Signed-off-by: Matthew McClintock <msm@freescale.com>
meta/classes/distutils.bbclass

index 79b962a3603b2a0fd0f17d9b3875f72298739142..18ae805f7bbce846c98e0297d4cbe67102a626a2 100644 (file)
@@ -72,3 +72,5 @@ distutils_do_install() {
 }
 
 EXPORT_FUNCTIONS do_compile do_install
+
+export LDSHARED="${CCLD} -shared"