Mail Archives: djgpp-workers/2003/07/18/14:03:27
Hello.
Andrew Cottrell wrote:
>
> > Looks good, apart from:
> >
> [snip]
> > You can use sed's -f option multiple times. Below is with sed 3.0.28:
> [snip]
>
> > bash-2.04$ echo -e "foo\nbar\nbaz" | sed -f t.sed -f t2.sed
> [snip]
> The attempt 2 line was :-
>
> + XNOPGGPP = $(CROSS_GCC) $(shell sed -f $(TOP)/../noprofpp.sed
> $(TOP)/../gcc.opt) -I. -I- -isystem $(TOP)/../../include $(CFLAGS)
>
> How about the following line?
> XNOPGGPP = $(CROSS_GCC) $(shell sed -f $(TOP)/../noprof.sed -f
> $(TOP)/../gpp_opt.sed $(TOP)/../gcc.opt) -I. -I- -isystem
> $(TOP)/../../include $(CFLAGS)
>
> If I do this then no separate C++ profiling sed file is required. Is this
> better?
Since you've generated gpp.opt, why not use it? How about:
XNOPGGPP = $(CROSS_GCC) $(shell sed -f $(TOP)/../noprof.sed $(TOP)/../gpp.opt)
-I. -I- -isystem $(TOP)/../../include $(CFLAGS)
Incidentally, what causes gpp.opt to be built? Does the default rule built it?
I couldn't see anything in the patch, to force it to be built.
> If it is okay then I can change the gpp_opt.sed to gpp.sed and
> produce an attempt #3. Third time lucky???
[snip]
Yes, I predict it will be. ;)
Thanks, bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -