On Sat, Feb 10, 2024 at 07:35:22PM +0100, Marc Glisse wrote:
> On Sat, 10 Feb 2024, Steve Kargl via Gcc wrote:
> 
> > So, how does one biulding all parts of gcc with "-O -g"?
> > 
> > In my shell script, I have
> > 
> > CFLAGS="-O -g"
> > export CFLAGS
> > 
> > CXXFLAGS="-O -g"
> > export CXXFLAGS
> > 
> > BOOT_CFLAGS="-O -g"
> > export BOOT_CFLAGS
> > 
> > ../gcc/configure --prefix=$HOME/work --enable-languages=c,c++,fortran \
> >  --enable-bootstrap --disable-libssp --disable-multilib
> > 
> > but during bootstrap I see
> > 
> > /home/kargl/gcc/obj/./prev-gcc/xg++ ... -g -O2 ...
> > 
> > Note the "-g -O2".  Why?
> 
> In addition to CFLAGS and BOOT_CFLAGS, you are missing CFLAGS_FOR_TARGET
> (plus the same 3 for CXX). I don't know if that's still sufficient, but
> that's what I used to set a few years ago.

Thanks for the pointers.  It seems that https://gcc.gnu.org/install/build.html
needs be updated.

-- 
Steve

Reply via email to