From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19581 invoked by alias); 13 Dec 2002 13:05:45 -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 19562 invoked from network); 13 Dec 2002 13:05:44 -0000 Received: from unknown (HELO lacrosse.corp.redhat.com) (66.187.233.200) by sources.redhat.com with SMTP; 13 Dec 2002 13:05:44 -0000 Received: from free.redhat.lsd.ic.unicamp.br (aoliva2.cipe.redhat.com [10.0.1.156]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id gBDD5fN21108; Fri, 13 Dec 2002 08:05:41 -0500 Received: from free.redhat.lsd.ic.unicamp.br (localhost.localdomain [127.0.0.1]) by free.redhat.lsd.ic.unicamp.br (8.12.5/8.12.5) with ESMTP id gBDD5elu005565; Fri, 13 Dec 2002 11:05:40 -0200 Received: (from aoliva@localhost) by free.redhat.lsd.ic.unicamp.br (8.12.5/8.12.5/Submit) id gBDD5b3q005561; Fri, 13 Dec 2002 11:05:37 -0200 To: Nathanael Nerode Cc: gcc-patches@gcc.gnu.org, gdb-patches@sources.redhat.com, binutils@sources.redhat.com, dj@redhat.com Subject: Re: (toplevel patch) Real make targets for configure-target-* References: <20021203163033.GA7829@doctormoo> From: Alexandre Oliva Organization: GCC Team, Red Hat Date: Fri, 13 Dec 2002 06:06:00 -0000 In-Reply-To: <20021203163033.GA7829@doctormoo> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-12/txt/msg00412.txt.bz2 On Dec 3, 2002, Nathanael Nerode wrote: > +# BASE_CC_FOR_TARGET is the actual program file of CC_FOR_TARGET, > +# for use in dependencies. Replace $$r with a relative > +# path if it's present. > +set dummy $CC_FOR_TARGET; cc_for_target_first_word=$2 > +BASE_CC_FOR_TARGET=`echo "$cc_for_target_first_word" | sed -e 's,[$][$]r,.,'` Beware CC_FOR_TARGET starting with env_var=content. You may want to strip words containing `=' before setting it. (yeah, I've actually run into this, while playing with distcc for gcc bootstrapping, having to override DISTCC_HOSTS) -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org} CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org} Free Software Evangelist Professional serial bug killer