How to using -O rather than -O2 when building binutils 2.11?

Alan Modra alan@linuxcare.com.au
Sat Mar 31 19:10:00 GMT 2001


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



More information about the Binutils mailing list