From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26167 invoked by alias); 26 Feb 2005 19:36:12 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 25748 invoked from network); 26 Feb 2005 19:36:03 -0000 Received: from unknown (HELO ms-smtp-01.nyroc.rr.com) (24.24.2.55) by sourceware.org with SMTP; 26 Feb 2005 19:36:03 -0000 Received: from doctormoo (cpe-24-59-105-51.twcny.res.rr.com [24.59.105.51]) by ms-smtp-01.nyroc.rr.com (8.12.10/8.12.10) with ESMTP id j1QJZmK3013798; Sat, 26 Feb 2005 14:35:51 -0500 (EST) Received: by doctormoo (Postfix, from userid 1000) id BF7FE43C05; Sat, 26 Feb 2005 14:35:58 -0500 (EST) Date: Sun, 27 Feb 2005 12:43:00 -0000 To: gcc-patches@gcc.gnu.org, paolo.bonzini@lu.unisi.ch, binutils@sources.redhat.com, gdb-patches@sources.redhat.com, dj@delorie.com Subject: Re: PR/17383: fix gcc in-srcdir build (take 2) Message-ID: <20050226193558.GA5098@twcny.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i From: neroden@twcny.rr.com (Nathanael Nerode) X-SW-Source: 2005-02/txt/msg00660.txt.bz2 I've been wanting to do this for yonks. Approved for mainline, unless DJ or Alex objects. Give them a day or two. However, it *will* be somewhat confusing for developers that the location of the build has moved; please post an announcement to gcc@gcc.gnu.org if this goes in, explaining the new presence of host-i686-pc-linux-gnu, etc. 2005-05-25 Paolo Bonzini PR bootstrap/17383 * Makefile.def (target_modules): Remove "stage", now unnecessary. * Makefile.tpl (HOST_SUBDIR): New substitution. (STAGE_HOST_EXPORTS, EXPECT, HOST_LIB_PATH, USUAL_AR_FOR_TARGET, USUAL_AS_FOR_TARGET, USUAL_DLLTOOL_FOR_TARGET, USUAL_GCC_FOR_TARGET, USUAL_LD_FOR_TARGET, USUAL_NM_FOR_TARGET, USUAL_OBJDUMP_FOR_TARGET, USUAL_RANLIB_FOR_TARGET, USUAL_WINDRES_FOR_TARGET): Use it. (Host modules, Bootstrapped modules): Use it. (Build modules, Target modules): Do not create symlink trees, always configure out-of-srcdir. (distclean): Try removing $(host_subdir) with rm before using rm -rf. * configure.in (FLAGS_FOR_TARGET, CC_FOR_TARGET, GCJ_FOR_TARGET, GFORTRAN_FOR_TARGET, CXX_FOR_TARGET, RAW_CXX_FOR_TARGET): Use $(HOST_SUBDIR). Create a symlink for host_subdir. * Makefile.in: Regenerate. * configure: Regenerate. config: 2005-05-25 Paolo Bonzini PR bootstrap/17383 * config/acx.m4 (GCC_TOPLEV_SUBDIRS): Set HOST_SUBDIR if an in-src gcc build is going. gcc: 2005-05-25 Paolo Bonzini PR bootstrap/17383 * gcc/Makefile.in (host_subdir): New. (build_objdir): New. Replace ../$(build_subdir) with it throughout. * gcc/configure: Regenerate. libjava: 2005-05-25 Paolo Bonzini PR bootstrap/17383 * configure.ac: Call GCC_TOPLEV_SUBDIRS. (COMPPATH): Removed. (ZIP, GCJH): Replace it with ../$(host_subdir). (built_gcc_dir): Add $(host_subdir). * configure: Regenerate. * Makefile.in, include/Makefile.in, testsuite/Makefile.in, external/Makefile.in, external/sax/Makefile.in, external/w3c_dom/Makefile.in: Regenerate. libobjc: 2005-05-25 Paolo Bonzini PR bootstrap/17383 * configure.ac: Call GCC_TOPLEV_SUBDIRS. (Determine CFLAGS for gthread): Use $host_subdir. * configure: Regenerate. * Makefile.in (host_subdir): New. (INCLUDES): Use it. -- This space intentionally left blank.