This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]