From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] Why does host-boost contain only a minimal selection?
Date: Tue, 13 Oct 2015 14:44:18 +0200 [thread overview]
Message-ID: <20151013144418.6192d5e9@free-electrons.com> (raw)
In-Reply-To: <561CD1A0.8070006@gmail.com>
Hello Anders,
On Tue, 13 Oct 2015 11:40:48 +0200, Anders Norman wrote:
> I have a system set up where I build both natively (for running unit
> tests) and cross. My application uses libboost (package/boost) and fails
> to build natively because the linker can't find libboost-filesystem.so.
> I investigated the issue and find the following in package/boost/boost.mk:
>
> # keep host variant as minimal as possible
> HOST_BOOST_FLAGS = --without-icu --without-libraries=$(subst
> $(space),$(comma),atomic chrono context coroutine date_time exception
> filesystem graph graph_parallel iostreams locale log math mpi
> program_options python random regex serialization signals system test
> thread timer wave)
>
> I guess this is why my host-boost does not contain the filesystem part.
> What is the reason for removing almost all parts of host-boost when the
> individual selection flags are already present and used correctly for
> the cross build?
The point of most host-* packages is simply to allow building tools
that are needed to build things for the target. So if a minimal
configuration of Boost is sufficient to build the Boost things on the
host that are needed to build the things for the target, then we prefer
to have such a minimal configuration that is faster to build.
We do not intend to have the configuration of all host packages match
the one of the target packages.
If you want to run your unit tests natively, then you should have a
separate Buildroot configuration targetting x86/x86-64, and therefore
use the target Boost.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2015-10-13 12:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-13 9:40 [Buildroot] Why does host-boost contain only a minimal selection? Anders Norman
2015-10-13 12:44 ` Thomas Petazzoni [this message]
2015-10-13 12:50 ` Anders Norman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151013144418.6192d5e9@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox