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

David O'Brien obrien@FreeBSD.org
Sat Mar 31 19:15:00 GMT 2001


On Sun, Apr 01, 2001 at 01:09:56PM +1000, Alan Modra wrote:
> 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 ...

I knew about this way, but I thought the mt-* and mh-* headers were a way
to hardcode these values so one didn't have to depend on having
environmental vars set.

-- 
-- David  (obrien@FreeBSD.org)



More information about the Binutils mailing list