Matthew Burgess wrote:

> I've tested with a slightly different (but IMO easier to 
> type/understand) sed:
> 
> sed -i 's/^XCFLAGS =/& -fomit-frame-pointer/' gcc/Makefile.in

Nice.

But that sed will misbehave when run twice in succession (as users often
inexplicably do). Mind you, my original sed misbehaves in the same way :-)
Slightly better would be this:

  sed -i 's/^XCFLAGS =$/& -fomit-frame-pointer/' gcc/Makefile.in

Regards
Greg
--
http://www.diy-linux.org/

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to