[Buildroot] preparing rootfs with gcc in buildroot

Grant Edwards grant.b.edwards at gmail.com
Thu Jun 21 21:24:31 UTC 2012


On 2012-06-21, Arnout Vandecappelle <arnout at mind.be> wrote:
> On 06/21/12 18:55, Grant Edwards wrote:
>> If you want to build things that use libraries that were built as part
>> of buildroot, then you have to add a couple more command line options
>> to tell the compiler/linker where to find the include and library
>> files created by buildroot (e.g.<wherever>/output/target.
>
> And even that is not necessary if you use output/host/usr/bin/xxx-gcc
> as the cross-compiler - that one has the sysroot hard-coded.

Right -- if you have buildroot build your compiler.  If you're using
an external compiler (e.g. one built separately with crosstool-ng),
you need to tell it where buildroot's libraries and include files are.

> By the way, you should point to <wherever>/output/staging, not
><wherever>/output/target.  target doesn't normally contain header
> files or static libraries.

Yup, my mistake.

-- 
Grant






More information about the buildroot mailing list