Compiling without -g
Joseph H. Buehler
jhpb@sarto.gaithersburg.md.us
Mon Jan 19 16:10:00 GMT 1998
Jonathan Buzzard <jab@hex.prestel.co.uk> writes:
> I grabed a copy of egcs-1.0.1 in order to get a better C++ compiler than
> gcc-2.7.2. However without going round editting all the Makefiles is
> there anyway to stop it using the -g flag everywhere as I am a little
> short on disk space.
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*=/)'
Still haven't been able to get egcs to compile under redhat 5.0,
though...
Joe Buehler
More information about the Gcc
mailing list