From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17765 invoked by alias); 28 Dec 2002 08:28:22 -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 17751 invoked from network); 28 Dec 2002 08:28:19 -0000 Received: from unknown (HELO mailout5-0.nyroc.rr.com) (24.92.226.122) by 209.249.29.67 with SMTP; 28 Dec 2002 08:28:19 -0000 Received: from doctormoo (syr-24-24-16-193.twcny.rr.com [24.24.16.193]) by mailout5-0.nyroc.rr.com (8.11.6/RoadRunner 1.20) with ESMTP id gBS8RtF04444; Sat, 28 Dec 2002 03:27:55 -0500 (EST) Received: from neroden by doctormoo with local (Exim 3.36 #1 (Debian)) id 18SCIo-0006fi-00; Sat, 28 Dec 2002 03:26:38 -0500 Date: Sat, 28 Dec 2002 01:00:00 -0000 To: gcc-patches@gcc.gnu.org, gdb-patches@sources.redhat.com, binutils@sources.redhat.com, kazu@cs.umass.edu Subject: (toplevel) Fix dramatic breakage for ordinary crosses (related to program_transform_name) Message-ID: <20021228082638.GA24817@doctormoo> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i From: Nathanael Nerode X-SW-Source: 2002-12/txt/msg00704.txt.bz2 I can't reproduce exactly the problem you had, Kazu, but I did manage to generate some dramatic breakage; apparently autoconf's version of $program_transform_name doesn't like to be after the s/x/x/ in sed. Luckily, autoconf's version of $program_transform_name is s/x/x if it would otherwise be blank, so we can just delete the extra s/x/x. Does this fix it? (If you don't have autogen, this patch is the same for Makefile.tpl and Makefile.in, so just apply it to each.) * Makefile.tpl: Fix dramatic bustage due to change in program_transform_name. * Makefile.in: Regenerate. Index: Makefile.tpl =================================================================== RCS file: /cvs/gcc/gcc/Makefile.tpl,v retrieving revision 1.24 diff -u -r1.24 Makefile.tpl --- Makefile.tpl 28 Dec 2002 06:57:48 -0000 1.24 +++ Makefile.tpl 28 Dec 2002 08:21:15 -0000 @@ -282,7 +282,7 @@ if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ echo $(AS); \ else \ - t='$(program_transform_name)'; echo as | sed -e 's/x/x/' $$t ; \ + t='$(program_transform_name)'; echo as | sed -e $$t ; \ fi; \ fi` @@ -296,7 +296,7 @@ if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ echo $(LD); \ else \ - t='$(program_transform_name)'; echo ld | sed -e 's/x/x/' $$t ; \ + t='$(program_transform_name)'; echo ld | sed -e $$t ; \ fi; \ fi` @@ -308,7 +308,7 @@ if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ echo $(DLLTOOL); \ else \ - t='$(program_transform_name)'; echo dlltool | sed -e 's/x/x/' $$t ; \ + t='$(program_transform_name)'; echo dlltool | sed -e $$t ; \ fi; \ fi` @@ -320,7 +320,7 @@ if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ echo $(WINDRES); \ else \ - t='$(program_transform_name)'; echo windres | sed -e 's/x/x/' $$t ; \ + t='$(program_transform_name)'; echo windres | sed -e $$t ; \ fi; \ fi` @@ -332,7 +332,7 @@ if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ echo $(AR); \ else \ - t='$(program_transform_name)'; echo ar | sed -e 's/x/x/' $$t ; \ + t='$(program_transform_name)'; echo ar | sed -e $$t ; \ fi; \ fi` @@ -348,7 +348,7 @@ echo ranlib; \ fi; \ else \ - t='$(program_transform_name)'; echo ranlib | sed -e 's/x/x/' $$t ; \ + t='$(program_transform_name)'; echo ranlib | sed -e $$t ; \ fi; \ fi` @@ -362,7 +362,7 @@ if [ '$(host_canonical)' = '$(target_canonical)' ] ; then \ echo $(NM); \ else \ - t='$(program_transform_name)'; echo nm | sed -e 's/x/x/' $$t ; \ + t='$(program_transform_name)'; echo nm | sed -e $$t ; \ fi; \ fi`