Re: static linking of gdb

Eli Zaretskii
2020-04-05T13:17:45Z

> From: Bernd Edlinger <bernd.edlinger@hotmail.de>
> Date: Sun, 5 Apr 2020 12:13:42 +0200
>
> I noticed that gdb is currently not
> linking libstdc++ statically, as it did
> in the past if I remember correclty.

You need to request that by passing --with-static-standard-libraries
to the configure script. Note that if you do that, you may encounter
an error at configure time, because the configure script thinks the
above option is incompatible with source-highlight library (without
checking whether a static version of that library is available). This
was reported here:

https://sourceware.org/pipermail/gdb-patches/2020-February/165843.html

but AFAIK was not fixed yet.