Re: Fix in-src-tree builds by making gdbserver/gnulib/ a separate library (a la libiberty, etc.), and adding ACX_CONFIGURE_DIR.

Tom Tromey
2012-04-16T20:01:30Z

>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

Pedro> I think that we should use more of gnulib in other parts of the
Pedro> src tree, replacing libiberty in the role of pure host
Pedro> compatibility layer (e.g., on the binutils side as well).

I agree.

Pedro> Then, both GDB and GDBserver are made to build and link the
Pedro> resulting libgnu.a under gnulib/gnulib/libgnu.a (instead of the
Pedro> current gnulib/libgnu.a).

It seems like a good approach to me.
I'm in favor of it.

Pedro> The Real, Proper, Ideal fix for this, IMO, is to make gdbserver a
Pedro> proper src top level project/directory, on the same level as GDB,
Pedro> and make the new gnulib "library" a top level project as well, on
Pedro> the same level as GDB and libiberty. Then, the top level
Pedro> configure would only try to build the gnulib directory once, by
Pedro> design, and would build both gdb and gdbserver if both are
Pedro> supported by the host, or only gdb if building a cross debugger.

Yeah, this would be good too; but I understand why you wouldn't want to
do it :-)

Tom