summaryrefslogtreecommitdiffstats
path: root/meta/classes/distutils.bbclass
diff options
context:
space:
mode:
authorMatthew McClintock <msm@freescale.com>2012-02-08 15:06:54 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-10 14:38:41 +0000
commit433f2ead93438e0d4d59b24ed3d6097dd658972f (patch)
tree2df54d0f459547239c5a34434b31cac088cf9856 /meta/classes/distutils.bbclass
parentef5bad08de21390d82f3944e9fea806cfd1ba5ef (diff)
downloadpoky-433f2ead93438e0d4d59b24ed3d6097dd658972f.tar.gz
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>
Diffstat (limited to 'meta/classes/distutils.bbclass')
-rw-r--r--meta/classes/distutils.bbclass2
1 files changed, 2 insertions, 0 deletions
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() {
72} 72}
73 73
74EXPORT_FUNCTIONS do_compile do_install 74EXPORT_FUNCTIONS do_compile do_install
75
76export LDSHARED="${CCLD} -shared"