[oe] Fix relocation of our SDK toolchains

Tom Rini trini at kernel.crashing.org
Sat Apr 4 00:05:56 UTC 2009


On Fri, Apr 03, 2009 at 07:15:14PM -0400, Denys Dmytriyenko wrote:
> On Fri, Apr 03, 2009 at 03:13:52PM -0700, Tom Rini wrote:
> > Hey all.  For some time, myself and others have wished that the
> > toolchain we install with our SDK target (meta-toolchain*) could be
> > relocatible.  I've finally spent some time digging into this and I've
> > come up with the following series of patches.  We had two problems.  The
> > first is that things like 'as', 'ld', 'cpp', etc that the toolchain
> > invokes were absolute links rather than relative links within the SDK.
> > The second issue is that we were using --with-gxx-include-dir in
> > configuring gcc when really we don't want that, we want to put the C++
> > includes where GCC is going to look for them already, not in an absolute
> > path.
> > 
> > I've tested this series of patches with gcc-4.1.2 / 4.2.4 and 4.3.3
> > cross-sdk targets on Linux and 4.2.4 on Windows.  For Linux I've
> > compiled qtopia-core-4.3.5 as a stand-in for a large complex app.
> > 
> > At this point the only thing left is to make the environment-setup setup
> > based on where it's invoked from.
> 
> Thanks! Will you be looking into libtool(-ize)/.la files and pkg-config .pc 
> files?

pkg-config is done already, via env variables that we setup in
environment-setup[1].  I'm not 100% sure on what might or might not need
doing to the .la files, however.

[1]: When I tried a while ago, it would get a tiny bit confused if you
have both host stuff (opkg-sdk) and target stuff (libpng-sdk) and give
you both.  So it could be possible to have some host stuff try and be
used if you don't have a target one as the case where you had both host
and target, the target was used.  Or I could be mis-remembering.
-- 
Tom Rini




More information about the Openembedded-devel mailing list