From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12183 invoked by alias); 22 Mar 2005 17:37:56 -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 12013 invoked from network); 22 Mar 2005 17:37:53 -0000 Received: from unknown (205.217.158.180) by sourceware.org with QMTP; 22 Mar 2005 17:37:53 -0000 Received: (qmail 7367 invoked by uid 10); 22 Mar 2005 17:37:52 -0000 Received: (qmail 22345 invoked by uid 500); 22 Mar 2005 17:37:41 -0000 Mail-Followup-To: binutils@sources.redhat.com, macro@linux-mips.org, nickc@redhat.com, rsandifo@redhat.com, drow@false.org, binutils@sourceware.org, paul@codesourcery.com To: Paul Brook Cc: binutils@sources.redhat.com, "Maciej W. Rozycki" , Nick Clifton , Richard Sandiford , Daniel Jacobowitz , binutils@sourceware.org Subject: Re: Binutils builds broken with -Werror References: <20050316201339.GA17575@nevyn.them.org> <424051F7.6070909@redhat.com> <200503221728.06922.paul@codesourcery.com> From: Ian Lance Taylor Date: Tue, 22 Mar 2005 19:44:00 -0000 In-Reply-To: <200503221728.06922.paul@codesourcery.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-03/txt/msg00676.txt.bz2 Message-ID: <20050322194400.TOWcm32fp9YqisoT4eTApx20jRXRu2WloFYWt_uCpg0@z> Paul Brook writes: > On Tuesday 22 March 2005 17:12, Maciej W. Rozycki wrote: > > On Tue, 22 Mar 2005, Nick Clifton wrote: > > > Hmm, well I am not wedded to GNU make, but do other versions of make > > > support the $(subst FROM,TO,TEXT) function ? If not then can anyone > > > suggest a more portable way of achieving the same effect ? > > > > Well, since that -Werror is added by configure scripts in the first > > place, the most reasonable way of dealing with it is probably letting > > autoconf/automake do their jobs. This flag could be substituted > > separately instead of along other flags in WARN_CFLAGS and then omitted > > selectively for generated files -- automake permits overriding default > > compilation flags in templates on a file by file basis. > > Does it? I thought that only worked on a per-library basis. No, you can override on a per-file basis using something like foo_c_CFLAGS = Ian