Binutils builds broken with -Werror
Maciej W. Rozycki
macro@linux-mips.org
Tue Mar 22 21:56:00 GMT 2005
On Tue, 22 Mar 2005, Ian Lance Taylor wrote:
> > > 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 =
Prompted by Paul's notice I've checked automake documentation and done
some testing and he is indeed right. But there's a working solution
actually suggested in automake info pages by using an auxiliary archive
library as detailed in the "Per-Object Flags Emulation" chapter there.
Maciej
More information about the Binutils
mailing list