* [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* Re: [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 [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
1 sibling, 0 replies; 3+ messages in thread
From: Joshua Lock @ 2012-02-10 7:20 UTC (permalink / raw)
To: openembedded-core
On 08/02/12 13:06, Matthew McClintock wrote:
> 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.
This patch appears to fix [YOCTO #1948] when applied to my Edison branch.
http://bugzilla.pokylinux.org/show_bug.cgi?id=1948
> Signed-off-by: Matthew McClintock<msm@freescale.com>
Signed-off-by: Joshua Lock <josh@linux.intel.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"
--
Joshua Lock
Yocto Project "Johannes factotum"
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [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 [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
1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2012-02-10 15:58 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Matthew McClintock
On 02/08/2012 01:06 PM, Matthew McClintock wrote:
> 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"
Merged into OE-core
Thanks
Sau!
^ permalink raw reply [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