[oe] Request for branch merge

Tom Rini tom_rini at mentor.com
Thu Apr 1 15:43:29 UTC 2010


On Thu, 2010-04-01 at 08:41 -0700, Tom Rini wrote:
> On Thu, 2010-04-01 at 16:33 +0100, Richard Purdie wrote:
> 
> > * Added relocatable binary processing from Poky for -native binaries 
> >   using chrpath. This isn't enabled for -cross packages due to the 
> >   relative path length problems.
> 
> Is there a reason to not use $ORIGIN here instead?  The patch Chris
> Larson posted ages ago does get this right (the hard part is
> gcc/gdb/binutils due to the multi configure running).  And any path
> length issues you hit with -cross you should be able to hit with
> -native, no?

For reference it's just doing:
export RELATIVERPATH = "${@base_path_relative(d.getVar('bindir', 1),
d.getVar('STAGING_LIBDIR_NATIVE', 1))}"
export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \
                        -Wl,-rpath,\\\$\$ORIGIN/${RELATIVERPATH} -Wl,-O1
\
                        -Wl,-rpath,${STAGING_LIBDIR_NATIVE} -Wl,-O1 \
                        "

In bitbake.conf (extra variable for dealing with the hard packages
later).

-- 
Tom Rini <tom_rini at mentor.com>
Mentor Graphics Corporation




More information about the Openembedded-devel mailing list