[Buildroot] [PATCH] pkgconf: make wrapper relocatable
Peter Korsgaard
peter at korsgaard.com
Wed Mar 9 15:55:08 UTC 2016
>>>>> "Samuel" == Samuel Martin <s.martin49 at gmail.com> writes:
Hi,
>> What about doing this relatively to the wrapper location?
>>
>> WRAPPER_DIR=$(dirname $0)
>> STAGING_DIR=$(readlink -f ${WRAPPER_DIR}/../../../staging/)
>>
>> and there you are, it is both relocatable and doesn't rely on
>> STAGING_DIR being defined in the environment.
> Funny that's close to what I've done in my relocatable sdk branch few
> days ago...
> https://github.com/tSed/buildroot/commit/cebeb4f43a44eda8e9c1d2fd9629e9f9deea3f28
Heh, great minds think alike ;)
Something else more-or-less related that I think we should
fix/workaround until the relocatable sdk rpath handling gets integrated
is the issue about the toolchain linking to gmp/mpc/mpfr, and not
finding our libraries when the toolchain is moved.
That is currently quite painful, especially when you want to reuse the
toolchain on different machines/distributions, that may not have
compatible libraries in /usr/lib.
The easiest workaround is just to build our host-gmp/mpc/mpfr statically
for now. This has minimal size impact on the toolchain (< 1MB for a
.tar.gz of output/host).
--
Bye, Peter Korsgaard
More information about the buildroot
mailing list