[OE-core] [PATCH 1/1] perl-native_5.12.2.bb: Fix compliation on ubuntu 11.04-alpha

Richard Purdie richard.purdie at linuxfoundation.org
Wed Mar 23 12:22:28 UTC 2011


On Mon, 2011-03-21 at 14:40 -0700, Tom Rini wrote:
> On 03/21/2011 11:23 AM, Khem Raj wrote:
> > Ubuntu has moved eglibc to /usr/lib/${arch}-linux-gnu and
> > /lib/${arch}-linux-gnu so we need that to be added to glibpth in
> > Configure.
> >
> > Currently we set LD=ld in environment for recipes inheriting native
> > class. This overrides the LD settings in the Makefiles of perl and
> > it tries to link by calling ld which does not work since its using
> > -l<x>  on commandline and ubuntu linker seems not to look into
> > the new location for these libraries. Its better to use gcc for linking
> > here anyway
> >
> > Signed-off-by: Khem Raj<raj.khem at gmail.com>
> > ---
> >   .../perl/files/Configure-multilib.patch            |   10 +++++++---
> >   meta/recipes-devtools/perl/perl-native_5.12.2.bb   |    4 +++-
> >   2 files changed, 10 insertions(+), 4 deletions(-)
> >
> > diff --git a/meta/recipes-devtools/perl/files/Configure-multilib.patch b/meta/recipes-devtools/perl/files/Configure-multilib.patch
> > index d3948a9..b561b6a 100644
> > --- a/meta/recipes-devtools/perl/files/Configure-multilib.patch
> > +++ b/meta/recipes-devtools/perl/files/Configure-multilib.patch
> > @@ -1,11 +1,15 @@
> > ---- perl-5.8.7/Configure.orig	2006-01-30 10:50:04.000000000 +0000
> > -+++ perl-5.8.7/Configure	2006-01-30 10:51:18.000000000 +0000
> > -@@ -1240,7 +1240,7 @@
> > +Index: perl-5.12.2/Configure
> > +===================================================================
> > +--- perl-5.12.2.orig/Configure
> > ++++ perl-5.12.2/Configure
> > @@ -28,6 +28,8 @@ S = "${WORKDIR}/perl-${PV}"
> >
> >   inherit native
> >
> > +export LD="${CC}"
> 
> We have CCLD for when we want to use CC as our LD (and yes, this usually 
> just ends up as CC, but lets be clear please).

Agreed, I've merged this patch but with the tweak from Tom.

Cheers,

Richard







More information about the Openembedded-core mailing list