[Buildroot] [PATCH] qemu: allow to build statically

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Apr 3 20:52:09 UTC 2017


Hello,

On Sun, 2 Apr 2017 14:37:17 +0200, Thomas Petazzoni wrote:

> On Wed,  9 Nov 2016 11:03:05 +0100, Jérôme Pouiller wrote:
> > Compiling Qemu statically allows to use it to chroot into target/. It is a
> > nice feature, so add an option for it.
> > 
> > Signed-off-by: Jérôme Pouiller <jezz at sysmic.org>
> > ---
> >  package/qemu/Config.in.host | 26 ++++++++++++++++++++++++++
> >  package/qemu/qemu.mk        |  4 ++++
> >  2 files changed, 30 insertions(+)  
> 
> Now that this patch is committed, we are seeing some build failures on
> host-qemu when linked statically:
> 
>   http://autobuild.buildroot.net/results/6bc/6bcfabc020fede51adcfafc9a570df5884d95696/build-end.log
>   http://autobuild.buildroot.net/results/4d0/4d0182da77cf386e57acf0565a18fc4628abbdc8/build-end.log
> 
> Could you have a look?

FWIW, I've reverted this patch. It's a feature that already wasn't seen
as very essential, and it's causing some build failures.

I don't think it's really easy to provide a functionality that allows
to build a host executable as a static binary, because most host
systems use glibc, and glibc doesn't officially support static linking.

Feel free to investigate those build failures (see the commit log for
the three different build failures) and send an updated version that
makes sure those build failures are fixed.

Thanks!

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


More information about the buildroot mailing list