From: Matthew McClintock Date: Wed, 8 Feb 2012 21:06:54 +0000 (-0600) Subject: distutils.bbclass: override LDSHARED so we use the linker for this build and not... X-Git-Tag: 2015-4~11777 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=3f6b859a29ba7f570b9dae3b5bb7ab4bd7b8cee4;p=openembedded-core.git 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. Signed-off-by: Matthew McClintock --- diff --git a/meta/classes/distutils.bbclass b/meta/classes/distutils.bbclass index 79b962a360..18ae805f7b 100644 --- a/meta/classes/distutils.bbclass +++ b/meta/classes/distutils.bbclass @@ -72,3 +72,5 @@ distutils_do_install() { } EXPORT_FUNCTIONS do_compile do_install + +export LDSHARED="${CCLD} -shared"