This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Binutils builds broken with -Werror
- From: Richard Sandiford <rsandifo at redhat dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: Daniel Jacobowitz <drow at false dot org>, binutils at sources dot redhat dot com
- Date: Mon, 21 Mar 2005 10:59:49 +0000
- Subject: Re: Binutils builds broken with -Werror
- References: <20050316201339.GA17575@nevyn.them.org><423E89B0.6000901@redhat.com>
Nick Clifton <nickc@redhat.com> writes:
> + # Disable -Werror, if it has been enabled, when building generated C
> source
> + # files since old versions of bison & yacc will produce working code which
> + # contain compile time warnings.
> + GENERATED_OFILES := $(GENERATED_CFILES:.c=.o)
> + $(GENERATED_OFILES):
> + $(COMPILE) -c `basename $@ .o`.c -Wno-error
> +
I don't think you should hard-code -Wno-error like this. Isn't binutils
supposed to buildable with non-gcc compilers? (And it does build with
MIPSpro FWIW, or at least it did recently.)
Richard