This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Fix in-srcdir build of gcc
- From: Daniel Jacobowitz <drow at false dot org>
- To: Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>
- Cc: binutils at sources dot redhat dot com, gdb-patches at sources dot redhat dot com,gcc-patches at sources dot redhat dot com
- Date: Fri, 25 Feb 2005 10:58:06 -0500
- Subject: Re: [PATCH] Fix in-srcdir build of gcc
- References: <421F4992.firstname.lastname@example.org>
On Fri, Feb 25, 2005 at 04:51:46PM +0100, Paolo Bonzini wrote:
> This patch is a "definitive" solution to the problem of building gcc
> in-srcdir. It builds host modules out of srcdir always, so that they do
> not conflict with the configuration of build or target modules. For an
> out-of-srcdir build, this does not change anything, but when --srcdir=.
> gcc will be configured to for example host-i686-pc-linux-gnu/gcc, ld
> will be configured to for example host-i686-pc-linux-gnu/ld, etc.
> While this can be even expected for gcc, which anyway is almost always
> built out-of-srcdir, it may violate the "principle of least surprise"
> for binutils or gdb. In that case, --srcdir=. is ok. That's why I am
> posting to all three lists.
> The patch requires some changes in target libraries to be able to find
> the newly-built gcc, but this is not necessary in src packages.
Did you try newlib or winsup?