This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: How to using -O rather than -O2 when building binutils 2.11?
- To: "David O'Brien" <obrien at FreeBSD dot org>
- Subject: Re: How to using -O rather than -O2 when building binutils 2.11?
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Sun, 1 Apr 2001 13:09:56 +1000 (EST)
- cc: binutils at sourceware dot cygnus dot com
On Sat, 31 Mar 2001, David O'Brien wrote:
> FreeBSD/Alpha's Gcc 2.95.2 compiler has a very buggy optimizer. -O2
> produces bad code. So I want to use only -O when building any targeted
> version of Binutils on this platform. How does one do that?
CFLAGS="-g -O" CXXFLAGS="-g -O" configure ...
or other command as appropriate for your shell to set CFLAGS and CXXFLAGS
in the environment.
You can also use
make CFLAGS="-g -O" CXXFLAGS="-g -O"
Alan Modra
--
Linuxcare