From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18357 invoked by alias); 25 Feb 2005 15:58:35 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 18218 invoked from network); 25 Feb 2005 15:58:21 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 25 Feb 2005 15:58:21 -0000 Received: from drow by nevyn.them.org with local (Exim 4.44 #1 (Debian)) id 1D4hqw-0004dy-Ub; Fri, 25 Feb 2005 10:58:07 -0500 Date: Fri, 25 Feb 2005 16:34:00 -0000 From: Daniel Jacobowitz To: Paolo Bonzini Cc: binutils@sources.redhat.com, gdb-patches@sources.redhat.com, gcc-patches@sources.redhat.com Subject: Re: [PATCH] Fix in-srcdir build of gcc Message-ID: <20050225155806.GA17653@nevyn.them.org> Mail-Followup-To: Paolo Bonzini , binutils@sources.redhat.com, gdb-patches@sources.redhat.com, gcc-patches@sources.redhat.com References: <421F4992.3030000@lu.unisi.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <421F4992.3030000@lu.unisi.ch> User-Agent: Mutt/1.5.6+20040907i X-SW-Source: 2005-02/txt/msg00259.txt.bz2 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? -- Daniel Jacobowitz CodeSourcery, LLC