On July 15, 2006 10:29 am, Randy McMurchy wrote:
> Robert Connolly wrote these words on 07/15/06 09:14 CST:
> > XCFLAGS = -g -O2
> >
> > sed 's/^XCFLAGS =$/& -fomit-frame-pointer/' will change it into:
> >
> > XCFLAGS = -g -O2 -fomit-frame-pointer
>
> Not on my systems. That sed will not match the line!
>
> '^XCFLAGS =$' does not equal 'XCFLAGS = -g -O2'
>
> Those two lines don't match, so the sed won't do anything. What am
> I missing here?

$ grep -e '^XCFLAGS =' gcc/Makefile.in
XCFLAGS =

Both '^XCFLAGS =$' and '^XCFLAGS =' match this.

robert

Attachment: pgp0aDySgu8NU.pgp
Description: PGP signature

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

Reply via email to