Re: [PATCH 0/2] gdb: Require a C++11 compiler

Maciej W. Rozycki
2016-11-04T13:31:52Z

On Tue, 1 Nov 2016, Pedro Alves wrote:

> > to mess with either forcing static linking or worse, forcing uses to
> > mess with non-standard LD_LIBRARY paths at run time.
>
> Note that just like gcc, gdb builds with -static-libstdc++ -static-libgcc.

Are you sure? All my recent cross-built `gdbserver' executables failed
to run without a pain of getting `libstdc++.so' in the right place on the
target. Or do you mean GDB proper only? I didn't even realise there was
intention to use static `libstdc++' and/or `libgcc' libraries.

Also I've not been particularly happy with the project moving over to C++
let alone C++11, however I have just decided I couldn't afford the effort
to go through all the discussion, which always takes time pinched from
other commitments. Being a CPU target maintainer only and with my rusty
1995-vintage C++ programming skills -- making it difficult to me to assess
what the advantages of modern C++ dialects might be -- I didn't want to
stand in the way of core developers if they think a move to C++ will make
their job easier, improving code quality and reducing maintenance burden.

FWIW,

Maciej