From mboxrd@z Thu Jan 1 00:00:00 1970 From: jhpb@sarto.gaithersburg.md.us (Joseph H. Buehler) To: egcs@cygnus.com Subject: Re: Compiling without -g Date: Thu, 22 Jan 1998 01:45:00 -0000 Message-id: References: X-SW-Source: 1998-01/msg00770.html Joe Buck writes: > > Here's what I do sometimes: > > > > find -type f | > > xargs grep -l 'FLAGS[ ]*=' | > > xargs perl -p -i -e 's#(-O\d?|-g)\b#-O#g if (/FLAGS\s*=/)' > > You don't need to edit the makefiles; it suffices to say, for example > > make CFLAGS=-O2 Not true, at least in some cases I have had to resort to using perl as shown. As I recall, the problem was recursive makes that either did not pass CFLAGS or overrode it. Joe Buehler