Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] distutils.bbclass: override LDSHARED so we use the linker for this build and not the one used in sstate-cache
@ 2012-02-08 21:06 Matthew McClintock
  2012-02-10  7:20 ` Joshua Lock
  2012-02-10 15:58 ` Saul Wold
  0 siblings, 2 replies; 3+ messages in thread
From: Matthew McClintock @ 2012-02-08 21:06 UTC (permalink / raw)
  To: openembedded-core

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(-)

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"
-- 
1.7.6.1





^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-02-10 16:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-08 21:06 [PATCH] distutils.bbclass: override LDSHARED so we use the linker for this build and not the one used in sstate-cache Matthew McClintock
2012-02-10  7:20 ` Joshua Lock
2012-02-10 15:58 ` Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox