[Buildroot] external buildroot toolchain: LD_LIBRARY_PATH needed

Thomas De Schampheleire patrickdepinguin+buildroot at gmail.com
Wed Aug 24 14:17:13 UTC 2011


If I build a buildroot toolchain on machine A, package the
output/host/usr directory and use that as an external toolchain on
machine B, I get errors that cc1 cannot find libmpfr.so.4.
The location of that library is hardcoded in some compiler tools, and
since we are on another machine, the original location does not exist.

I can work around this by specifying
LD_LIBRARY_PATH=<buildroot>/output/host/opt/ext-toolchain/lib in the
environment, but this is an annoying and not so clean solution.

How is this supposed to work?
How do other external toolchains handle this?


More information about the buildroot mailing list