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

Ian Lance Taylor ian@zembu.com
Mon Apr 2 09:01:00 GMT 2001


Alan Modra <alan@linuxcare.com.au> writes:

> On Sun, 1 Apr 2001, Alan Modra wrote:
> 
> > A fix would seem to involve pulling CFLAGS out of the Makefile frags, but
> > this is getting all too clever for my liking.
> 
> I succumbed to the lure of "cleverness" :-)

There is code in the top level configure.in to do this.  However, it
only works if gcc is not being used; the intention was to permit
specification of weird compiler flags, while assuming that gcc was
correct.  If you don't do that, then you will get the wrong effect
with files like config/mh-decstation--you will get cc even though you
want to use gcc.

Perhaps the existing code in configure.in could be tweaked somehow.

> I'm worried that use of
> ${var:+something} may not be that portable.

I think it's fairly portable, but doesn't work on Ultrix.  I don't
know if people still care about Ultrix.

Ian



More information about the Binutils mailing list