buildroot/toolchain/external-toolchain
Yann E. MORIN 6db57c6936 toolchain: fix using external toolchains built with buildroot
The toolchains built with buildroot use specially crafted paths for their
sysroot and prefix. Fix that by asking gcc where it finds a file we
know by relative path to the sysroot.

This has the side effect of greatly simplifying the sysroot detection
in every cases tested so far (BR toolchains, CT-NG toolchains, and
CodeSourcery toolchains).

Fixes bug #851.

Thanks Thomas Petazzoni for the hint and some testings.
Thanks Grant Edwards for the report and the comments.

Signed-off-by: Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-04-07 09:49:20 +02:00
..
Config.in Simple glibc-based external toolchain support 2009-06-15 20:48:27 +02:00
Config.in.2 toolchain: revert r25193 (Change binary toolchain configuration) 2009-02-04 13:42:40 +00:00
ext-tool.mk toolchain: fix using external toolchains built with buildroot 2010-04-07 09:49:20 +02:00