Re: static linking of gdb

Bernd Edlinger
2020-04-05T13:23:48Z

Oh, no.

We need to catch exceptions from shared libraries?

Why ?

Not being able to link gdbserver with static libstdc++
will render this tool useless....

Sorry,
Bernd.

On 4/5/20 3:17 PM, Eli Zaretskii wrote:
>> 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.
>