On Thu, 2010-04-01 at 08:43 -0700, Tom Rini wrote:
> 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).
I really much prefer the post processing approach as it "just works" and
doesn't need exceptions for hard packages, nor does it have horrible
quoting.
Cheers,
Richard
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel