[Buildroot] How to choose C library dependencies

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon May 16 21:19:22 UTC 2016


Hello,

On Sun, 15 May 2016 01:54:07 +0200, Arnout Vandecappelle wrote:

> > I want to compile ejabberd and run it on my router. I choose erlang package with
> > SMP support and all modules and ejabberd package, does not configure defconfig.
> > Then I run /make ejabberd/, copy ejabberd, erlang and busybox from /target/
> > folder to router and run it.  
> 
>   Buildroot in't really meant for that kind of scenario. That said, it should be 
> possible to do it. Basically you must create a toolchain that matches exactly 
> with what is already installed on the target.

Or:

 1/ Use a statically linked binary.

 2/ Use a chroot.

In both cases, you must make sure that the C library uses kernel
headers that are at least as old at the kernel running on your target.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list