[oe-commits] Matthew McClintock : distutils.bbclass: override LDSHARED so we use the linker for this build and not the one used in sstate-cache

git at git.openembedded.org git at git.openembedded.org
Fri Feb 10 17:09:21 UTC 2012


Module: openembedded-core.git
Branch: 2011-1
Commit: 935a23dfe70c4c47458e8a142d844df30079b524
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=935a23dfe70c4c47458e8a142d844df30079b524

Author: Matthew McClintock <msm at freescale.com>
Date:   Wed Feb  8 15:06:54 2012 -0600

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 at freescale.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/distutils.bbclass |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

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"





More information about the Openembedded-commits mailing list