This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Update rebuild rules in non-automake directories.
> Date: Wed, 26 Aug 2009 19:38:07 +0200
> From: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
> Cc: gdb-patches@sourceware.org
>
> But I have a more general question first:
> so far I was under the impression that GCC and all of src always only
> builds outside the source directory (and consequently, I never tested
> that for the autotools upgrade). Which parts of src can (could) be
> built in-tree and for which parts is that usually done?
I don't know about the other parts of src, but GDB always supported
in-tree builds, even though we advise in README to do it outside the
source tree:
You can build GDB right in the source directory:
cd gdb-6.3
./configure
make
cp gdb/gdb /usr/local/bin/gdb (or wherever you want)
However, we recommend that an empty directory be used instead.
This way you do not clutter your source tree with binary files
and will be able to create different builds with different
configuration options.