[Buildroot] [PATCH v2 1/5] package/gdb: rework dependency for C++11

Thomas Petazzoni thomas.petazzoni at bootlin.com
Thu Feb 8 08:05:57 UTC 2018


Hello,

On Thu, 8 Feb 2018 01:22:20 +0100, Arnout Vandecappelle wrote:

>  So I messed around with gdb a bit, I noticed a couple of things.
> 
> - gdbserver really needs C++11; some of the shared files in the common directory
> are C++ files.

Correct.

> - host-gdb does not build gdbserver. So all the dependencies we have in host-gdb
> on the target's toolchain are phony. Or perhaps they are there just in case
> target gdb is selected as well, but then it's not expressed very well...

Those target toolchain dependencies in the host-gdb package where here
to avoid selecting a wrong version of host-gdb (which affects the
target gdb version) when the target toolchain does not have the
required feature. For example, we would allow to select 8.0 only if the
host toolchain *and* the target toolchain had C++11 support.

My PATCH 1/5 in this series is precisely here to rework that.

>  Bottom line, I think could be simplified a lot here by removing the version choice.

Everything can be simplified with less options, it's pretty obvious.
The question is whether having those options is useful :-)

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
http://bootlin.com


More information about the buildroot mailing list