From: "Andrew Cottrell" To: Subject: RE: GCC 3.3 & LIBC - build process change (attempt #2) Date: Fri, 18 Jul 2003 16:03:03 +1000 Message-ID: <000001c34cf2$43516430$0101a8c0@acp42g> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 Importance: Normal In-Reply-To: <3F16ED96.E6D64B20@phekda.freeserve.co.uk> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h6I63hB19161 Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > 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? If it is okay then I can change the gpp_opt.sed to gpp.sed and produce an attempt #3. Third time lucky??? > Actually, why don't you use gpp.opt in XNOPGGPP instead of > gcc.opt? I thought that as GCC 3.3 needs a separate C++ and C option list then in the future there may need to be a separate profiling list for C++ and C. >Then you wouldn't need noprofpp.sed. I guess your > solution allows us to cope with C & > C++ having different profiling options, but is that likely? I don't think so and there is only one file. > I'd also prefer the name gpp.sed to gpp_opt.sed, but that's > really picky, so feel free to ignore me there. ;) I don't care about the name, so long as the process is okay. Andrew