Re: Two observations using GDB 13 snapshot

Hannes Domani via Gdb-patches
2023-01-07T18:28:39Z

Am Samstag, 7. Januar 2023, 19:08:23 MEZ hat Eli Zaretskii <eliz@gnu.org> Folgendes geschrieben:

> > From: Andreas Schwab <schwab@linux-m68k.org>
>
> > Cc: Eli Zaretskii <eliz@gnu.org>,  "gdb-patches@sourceware.org"
> >  <gdb-patches@sourceware.org>
> > Date: Sat, 07 Jan 2023 18:39:57 +0100
> >
> > On Jan 07 2023, Hannes Domani wrote:
> >
> > > Isn't --enable-shared the default?
> >
> > No.

gdb/configure --help says it is:

--enable-shared[=PKGS]  build shared libraries [default=yes]
--enable-static[=PKGS]  build static libraries [default=yes]

> gdb/libtool thinks shared libraries should be built:
>
>   # Whether or not to build shared libraries.
>   build_libtool_libs=yes
>
> Where does it get that idea?

From gdb/configure:

# Whether or not to build shared libraries.
build_libtool_libs=$enable_shared

Hannes