Patchwork [CONSOLIDATED,PULL,04/20] distutils.bbclass: override LDSHARED so we use the linker for this build and not the one used in sstate-cache

login
register
mail settings
Submitter Saul Wold
Date Feb. 10, 2012, 8:28 a.m.
Message ID <ab89c0c57415134cc0c63fe773e3b0a3966f9402.1328862318.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/21095/
State New
Headers show

Comments

Saul Wold - Feb. 10, 2012, 8:28 a.m.
From: Matthew McClintock <msm@freescale.com>

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 |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/meta/classes/distutils.bbclass b/meta/classes/distutils.bbclass
index 79b962a..18ae805 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"